setKey
This is a script event on id Tech 4 engines, present on DOOM 3, Quake 4 and Prey. Below you can find its signature for each game that declares it.
DOOM 3
Sets a key on this entity's spawn args. Note that most spawn args are evaluated when this entity spawns in, so this will not change the entity's behavior in most cases. This is chiefly for saving data the script needs in an entity for later retrieval.
| Property |
Value |
| Type |
script event |
| Returns |
void |
| Parameters |
string key, string value |
| Section |
all entities |
Quake 4
| Property |
Value |
| Type |
script event |
| Returns |
void |
| Parameters |
string, string |
Prey
| Property |
Value |
| Type |
script event |
| Returns |
void |
| Parameters |
string, string |