Difference between revisions of "Lua:IsDispenser"
From Fortress Forever Wiki
Jump to navigationJump to searchMulchman MM (talk | contribs) |
m |
||
Line 12: | Line 12: | ||
The output is true or false depending if ent_id is a dispenser or not. | The output is true or false depending if ent_id is a dispenser or not. | ||
− | [[Category: | + | [[Category:Lua_Commands]] |
Revision as of 04:20, 13 December 2007
IsDispenser
IsDispenser is used to see if an entity index being passed into a function is a dispenser or not.
Usage
IsDispenser( 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 dispenser or not.