Difference between revisions of "Lua:IsGrenade"

From Fortress Forever Wiki
Jump to navigationJump to search
 
Line 10: Line 10:
  
 
===Output===
 
===Output===
The output is true or false depending if ent_id is a grenade 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 or not. A list of grenades can be found [[:Category:Grenades|here]].
  
 
===Example===
 
===Example===
  
 
[[Category:LUA_Commands]]
 
[[Category:LUA_Commands]]

Revision as of 06:30, 18 June 2006

IsGrenade

IsGrenade is used to see if an entity index being passed into a function is a grenade or not.

Usage

IsGrenade( 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 or not. A list of grenades can be found here.

Example