Difference between revisions of "Lua:Flags"
From Fortress Forever Wiki
Jump to navigationJump to searchSqueek-10494 (talk | contribs) (New page: {{Lua:FlagType |prefix=Grenade |usage=Returns a specific grenade's ID |flags= {{Lua:Flag|Grenade.kNormal|Frag grenade (All classes except Scout and Civilian)}} {{Lua:Flag|Grenade.kCaltrop|...) |
Squeek-10494 (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | {{Lua:FlagType | ||
+ | |prefix=Team | ||
+ | |usage=Returns a specific team's ID | ||
+ | |flags= | ||
+ | {{Lua:Flag|Team.kUnassigned|The Unassigned team consists of players that have not picked a team)}} | ||
+ | {{Lua:Flag|Team.kSpectator|Spectators}} | ||
+ | {{Lua:Flag|Team.kRed|The Red team}} | ||
+ | {{Lua:Flag|Team.kBlue|The Blue team}} | ||
+ | {{Lua:Flag|Team.kYellow|The Yellow team}} | ||
+ | {{Lua:Flag|Team.kGreen|The Green team}} | ||
+ | |example= | ||
+ | <code><pre> | ||
+ | local player = CastToPlayer( touch_entity ) | ||
+ | if player:GetTeamId() == Team.kRed then | ||
+ | ... | ||
+ | end | ||
+ | </pre></code> | ||
+ | }} | ||
+ | |||
{{Lua:FlagType | {{Lua:FlagType | ||
|prefix=Grenade | |prefix=Grenade |
Revision as of 19:42, 25 February 2008
Team
Returns a specific team's ID
|
Example
local player = CastToPlayer( touch_entity )
if player:GetTeamId() == Team.kRed then
...
end
Grenade
Returns a specific grenade's ID
|
Example
local grenade = CastToPlayer( explode_entity )
if grenade:Type() == Grenade.kNormal then
...
end