Difference between revisions of "Lua:Flags"
From Fortress Forever Wiki
Jump to navigationJump to searchSqueek-10494 (talk | contribs) |
Squeek-10494 (talk | contribs) |
||
Line 39: | Line 39: | ||
</pre></code> | </pre></code> | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua]] |
Revision as of 20:09, 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