trigger_flagonly
This is an entity on id Tech 3 engines, present on RTCW Single Player, RTCW Multiplayer and Enemy Territory. Below you can find its spawnflags, keys and editor settings for each game that defines it.
RTCW Single Player
Player must be carrying the proper flag for it to trigger. It will call the "death" function in the object's script.
Spawnflags
| Flag |
Bit |
Description |
| RED_FLAG |
1 |
-- only trigger if player is carrying red flag |
| BLUE_FLAG |
2 |
-- only trigger if player is carrying blue flag |
Keys
| Key |
Description |
| scriptName |
The object name in the script file |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_flagonly |
RTCW Multiplayer
Player must be carrying the proper flag for it to trigger. It will call the "death" function in the object's script.
Spawnflags
| Flag |
Bit |
Description |
| RED_FLAG |
1 |
-- only trigger if player is carrying red flag |
| BLUE_FLAG |
2 |
-- only trigger if player is carrying blue flag |
Keys
| Key |
Description |
| scriptName |
The object name in the script file |
| score |
score given to player for dropping flag in this field (default 20) |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_flagonly |
Enemy Territory
Player must be carrying the proper flag for it to trigger. It will call the "death" function in the object's script.
Spawnflags
| Flag |
Bit |
Description |
| RED_FLAG |
1 |
-- only trigger if player is carrying red flag |
| BLUE_FLAG |
2 |
-- only trigger if player is carrying blue flag |
| KILL_FLAG |
4 |
|
Keys
| Key |
Description |
| scriptName |
The object name in the script file |
Editor
| Property |
Value |
| Type |
brush entity |
| Color |
.5 .5 .5 |
| Spawn function |
SP_trigger_flagonly |