Player.DetonateTripmines

From GMod Wiki

Revision as of 16:49, 25 September 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:DetonateTripmines( )
Description:
Detonates all tripmines belonging to a player as if he/she was using attack2 with the tripmines selected.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.DetonateTripmines]Player.DetonateTripmines [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDetonates all player's tripmines.
Used onNewerServer.png
Code
for _, v in ipairs( player.GetAll() ) do
     v:DetonateTripmines()
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox