Difference between revisions of "Lua:Flags"
From Fortress Forever Wiki
Jump to navigationJump to searchSqueek-10494 (talk | contribs) |
Squeek-10494 (talk | contribs) |
||
Line 33: | Line 33: | ||
|example= | |example= | ||
<code><pre> | <code><pre> | ||
− | local grenade = | + | local grenade = CastToGrenade( explode_entity ) |
if grenade:Type() == Grenade.kNormal then | if grenade:Type() == Grenade.kNormal then | ||
... | ... |
Revision as of 17:57, 18 December 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 = CastToGrenade( explode_entity )
if grenade:Type() == Grenade.kNormal then
...
end