Difference between revisions of "Lua:IsGrenInNoGren"

From Fortress Forever Wiki
Jump to navigationJump to search
Line 1: Line 1:
 
==IsGrenInNoGren==
 
==IsGrenInNoGren==
  
IsGrenInNoGren is used to see if a a grenade is in a "nogrens" area. By default, a trigger_ff_script named "nogrens" will not allow grenades to explode while the grenade is touching the "nogrens" trigger_ff_script entity.
+
IsGrenInNoGren is used to see if a a grenade is in a "[[:Category:LUA:nogrens|nogrens]]" area. By default, a trigger_ff_script named "[[:Category:LUA:nogrens|nogrens]]" will not allow grenades to explode while the grenade is touching the "nogrens" trigger_ff_script entity.
  
 
===Usage===
 
===Usage===
Line 10: Line 10:
  
 
===Output===
 
===Output===
The output is true or false depending if ent_id is a grenade and then if the grenade is in a "nogrens" area or not. A list of grenades can be found [[:Category:Grenades|here]].
+
The output is true or false depending if ent_id is a grenade and then if the grenade is in a "[[:Category:LUA:nogrens|nogrens]]" area or not. A list of grenades can be found [[:Category:Grenades|here]].
  
 
==Important Note==
 
==Important Note==

Revision as of 11:27, 19 June 2006

IsGrenInNoGren

IsGrenInNoGren is used to see if a a grenade is in a "nogrens" area. By default, a trigger_ff_script named "nogrens" will not allow grenades to explode while the grenade is touching the "nogrens" trigger_ff_script entity.

Usage

IsGrenInNoGren( ent_id )

Input

The ent_id passed in is simply an integer index that refers to an entities game code ENTINDEX().

Output

The output is true or false depending if ent_id is a grenade and then if the grenade is in a "nogrens" area or not. A list of grenades can be found here.

Important Note

If you want trigger's to react to grenades you MUST 'check'/'tick' the "everything" option on the flags tab of the entity in Hammer.

http://mulchman.trepid.net/tick-everything.JPG