Entities
Entities are used in to specify player spawn locations or to add effects, doors, items and more to a map.
- Info - specify locations, areas or behaviors
- Env - environmental/visual stuff
- Gen - generate stuff (particle effects)
- Func - have a function which influences the game
- Trigger - trigger and control other entities
Category: all (50)
- 0 - Info_T
- 1 - Info_CT
- 2 - Info_VIP
- 3 - Info_Hostage
- 4 - Info_RescuePoint
- 5 - Info_BombSpot
- 6 - Info_EscapePoint
- 8 - Info_Animation
- 9 - Info_Storm
- 10 - Info_TileFX
- 11 - Info_NoBuying
- 12 - Info_NoWeapons
- 13 - Info_NoFOW
- 14 - Info_Quake
- 15 - Info_CTF_Flag
- 16 - Info_OldRender
- 17 - Info_Dom_Point
- 18 - Info_NoBuildings
- 19 - Info_BotNode
- 20 - Info_TeamGate
- 21 - Env_Item
- 22 - Env_Sprite
- 23 - Env_Sound
- 24 - Env_Decal
- 25 - Env_Breakable
- 26 - Env_Explode
- 27 - Env_Hurt
- 28 - Env_Image
- 29 - Env_Object
- 30 - Env_Building
- 31 - Env_NPC
- 32 - Env_Room
- 33 - Env_Light
- 34 - Env_LightStripe
- 50 - Gen_Particles
- 51 - Gen_Sprites
- 52 - Gen_Weather
- 53 - Gen_FX
- 70 - Func_Teleport
- 71 - Func_DynWall
- 72 - Func_Message
- 73 - Func_GameAction
- 80 - Info_NoWeather
- 90 - Trigger_Start
- 91 - Trigger_Move
- 92 - Trigger_Hit
- 93 - Trigger_Use
- 94 - Trigger_Delay
- 95 - Trigger_Once
- 96 - Trigger_If
ID 94 - Trigger_Delay (Delay)
Info
Forwards a trigger signal after a specified time.
In other words: As soon as this entity is triggered, it will wait for the specified delay. After this delay it will trigger all entities in its trigger field.
Examples for valid delay values:
1 = 1 second
0.5 = half a second
0.1 = 1/10 of a second (100 ms)
0.01 = 1/100 of a second (10 ms)
0.001 = 1/1000 of a second (1 ms)
In other words: As soon as this entity is triggered, it will wait for the specified delay. After this delay it will trigger all entities in its trigger field.
Note: You can also enter floating point values in the field! (supported since version 1.0.0.3)
Examples for valid delay values:
1 = 1 second
0.5 = half a second
0.1 = 1/10 of a second (100 ms)
0.01 = 1/100 of a second (10 ms)
0.001 = 1/1000 of a second (1 ms)
Note: If the value is in millisecond precision, it will be saved in ints[1]. If it is in second precision, it will be saved in ints[0].
Note: When triggered the entity will check once each frame if the delay is over. Therefore the actual delay can differ by a few milliseconds. See Lua timer command for details on this behavior.
Attention: If ints[1] is > 0, the game will use this value for the delay. The value of ints[0] will be ignored in that case.
Values / Properties
The following values can be set in the entity properties menu of the map editor and can be read using the Lua command entity.
- ints[0]=delay in seconds (used when entering an integer in the editor)
- ints[1]=delay in milliseconds (used when entering a floating point number in the editor)