Difference between revisions of "Lua:IsPlayerInNoBuild"
From Fortress Forever Wiki
Jump to navigationJump to searchMulchman MM (talk | contribs) |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Infobox manual/Header}} | ||
==IsPlayerInNoBuild== | ==IsPlayerInNoBuild== | ||
| − | IsPlayerInNoBuild is used to see if a player is in a "[[: | + | IsPlayerInNoBuild is used to see if a player is in a "[[:lua:nobuild|nobuild]]" area. By default, a trigger_ff_script named "[[:lua:nobuild|nobuild]]" will not allow players to build while the player is touching the "nobuild" trigger_ff_script entity. |
===Usage=== | ===Usage=== | ||
| Line 10: | Line 11: | ||
===Output=== | ===Output=== | ||
| − | The output is true or false depending if ent_id is a player and then if the player is in a "[[: | + | The output is true or false depending if ent_id is a player and then if the player is in a "[[:lua:nobuild|nobuild]]" area or not. |
| − | [[Category: | + | [[Category:Lua_Commands]] |
| + | {{Infobox manual/Footer}} | ||
Latest revision as of 16:27, 31 December 2007
|
IsPlayerInNoBuildIsPlayerInNoBuild is used to see if a player is in a "nobuild" area. By default, a trigger_ff_script named "nobuild" will not allow players to build while the player is touching the "nobuild" trigger_ff_script entity. UsageIsPlayerInNoBuild( 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 player and then if the player is in a "nobuild" area or not. |