Nuclide
Software Development Kit for id Technology
trigger_changetarget Class Reference

About this class

Server-Entity: Changes Targets Of Other Entities.

QUAKED trigger_changetarget (.5 .5 .5) (-8 -8 -8) (8 8 8)

OVERVIEW

When triggered, trigger_changetarget changes the 'target' value of any entity to something else.

KEYS

  • "targetname" : Name
  • "target" : Target when triggered
  • "m_iszNewTarget" : Name of the new 'target' value for the targeted entity

TRIVIA

This entity was introduced in Half-Life (1998).

Inheritance diagram for trigger_changetarget:
NSPointTrigger

Public Member Functions

void trigger_changetarget (void)
 
virtual void Save (float)
 Handles saving a copy of this entity to a given filehandle. More...
 
virtual void Restore (string, string)
 Similar to NSIO::SpawnKey but for save-game fields. More...
 
virtual void SpawnKey (string, string)
 This method handles entity key/value pairs on map load. More...
 
virtual void Trigger (entity, triggermode_t)
 Called whenever we're legacy triggered by another object or function. More...
 

Constructor & Destructor Documentation

◆ trigger_changetarget()

void trigger_changetarget::trigger_changetarget ( void  )

Member Function Documentation

◆ Restore()

void trigger_changetarget::Restore ( string  strKey,
string  strValue 
)
virtual

Similar to NSIO::SpawnKey but for save-game fields.

Whatever you write into file handles within your NSIO::Save() method needs to be read back in here.

Reimplemented from NSPointTrigger.

◆ Save()

void trigger_changetarget::Save ( float  handle)
virtual

Handles saving a copy of this entity to a given filehandle.

Within you want to use the NSIO::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.

Reimplemented from NSPointTrigger.

◆ SpawnKey()

void trigger_changetarget::SpawnKey ( string  strKey,
string  strValue 
)
virtual

This method handles entity key/value pairs on map load.

You can easily convert the strValue parameter using the ReadFloat etc. methods that are part of NSIO.

Reimplemented from NSPointTrigger.

◆ Trigger()

void trigger_changetarget::Trigger ( entity  act,
triggermode_t  state 
)
virtual

Called whenever we're legacy triggered by another object or function.

Reimplemented from NSTrigger.


The documentation for this class was generated from the following file: