ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. detonateSatchels

Function

detonateSatchels

ServerProjectilesIdentical to MTA:SA

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)

See also