- Documentation
- Server functions
- detonateSatchels
Function
detonateSatchels
Detonates all satchel charges (type 39 projectiles) placed by a player; without a player, all on the server. Each explodes at its position and disappears.
Syntax
bool detonateSatchels([player thePlayer = nil])Arguments
thePlayerplayer, optional = nil- The charges' owner.
Returns
true when something was detonated.
Example
addCommandHandler("detonuj", function(player)
if not detonateSatchels(player) then outputChatBox("Nie masz ladunkow", player) end
end)