Difference between revisions of "Lua:IsPlayerInNoBuild"

From Fortress Forever Wiki
Jump to navigationJump to search
m (fixed links)
Line 1: Line 1:
 
==IsPlayerInNoBuild==
 
==IsPlayerInNoBuild==
  
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.
+
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 10:
  
 
===Output===
 
===Output===
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.
+
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:Lua_Commands]]
 
[[Category:Lua_Commands]]

Revision as of 17:48, 19 December 2007

IsPlayerInNoBuild

IsPlayerInNoBuild 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.

Usage

IsPlayerInNoBuild( 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 player and then if the player is in a "nobuild" area or not.