Trigger auto (GoldSrc): Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | SirYodaJedi (talk | contribs)  | ||
| Line 5: | Line 5: | ||
| == Keyvalues == | == Keyvalues == | ||
| {{hl1 kv targetname}} | {{hl1 kv targetname}} | ||
| {{KV|Global State to Read|string|The trigger_auto will only fire its target if this state have been set by an [[env_global_(GoldSrc)|env_global]].}} | {{KV|Global State to Read|intn=globalstate|string|The trigger_auto will only fire its target if this state have been set by an [[env_global_(GoldSrc)|env_global]].}} | ||
| {{KV|Trigger state|choices|The state to set on the targeted entity.}} | {{KV|Trigger state|intn=triggerstate|integer choices|The state to set on the targeted entity.}} | ||
| :{| class=standard-table | :{| class=standard-table | ||
| ! Value || Description | ! Value || Description | ||
Latest revision as of 06:08, 20 May 2025
|  Class hierarchy | 
|---|
| CAutoTrigger | 
|  triggers.cpp | 
trigger_auto  is a   point entity  available in  Half-Life. It automatically fires its targets on map spawn.
 Half-Life. It automatically fires its targets on map spawn.
Keyvalues
- Name (targetname) <string>
- The targetname that other entities refer to this entity by.
- Global State to Read (globalstate) <string>
- The trigger_auto will only fire its target if this state have been set by an env_global.
- Trigger state (triggerstate) <integer choices>
- The state to set on the targeted entity.
- Value - Description - 0- Off - 1- On - 2- Toggle 
- Target (target) <targetname>
- The targetname of an entity this entity will trigger when activated.
- Delay before trigger (delay) <integer>
- Delay in seconds before firing the targeted entity.
- Killtarget (killtarget) <targetname>
- Entity to remove when activated.
Flags
- Remove on fire : [1]
