Difference between revisions of "Lua:IsGrenInNoGren"
From Fortress Forever Wiki
Jump to navigationJump to searchm (relinked img external link to local uploaded file.) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Infobox manual/Header}} | ||
==IsGrenInNoGren== | ==IsGrenInNoGren== | ||
| − | IsGrenInNoGren is used to see if a grenade is in a "[[: | + | IsGrenInNoGren is used to see if a grenade is in a "[[:lua:nogrens|nogrens]]" area. By default, a trigger_ff_script named "[[: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 11: | ||
===Output=== | ===Output=== | ||
| − | The output is true or false depending if ent_id is a grenade and then if the grenade is in a "[[: | + | The output is true or false depending if ent_id is a grenade and then if the grenade is in a "[[:lua:nogrens|nogrens]]" area or not. A list of grenades can be found [[:Category:Grenades|here]]. |
==Important Note== | ==Important Note== | ||
| Line 18: | Line 19: | ||
[[Category:Lua_Commands]] | [[Category:Lua_Commands]] | ||
| + | {{Infobox manual/Footer}} | ||
Latest revision as of 16:39, 31 December 2007
|
IsGrenInNoGrenIsGrenInNoGren is used to see if 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. UsageIsGrenInNoGren( ent_id ) InputThe ent_id passed in is simply an integer index that refers to an entities game code ENTINDEX(). OutputThe 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 NoteIf you want trigger's to react to grenades you MUST 'check'/'tick' the "everything" option on the flags tab of the entity in Hammer. |