- Documentation
- Server functions
- getVehicleWreckDelay
Function
getVehicleWreckDelay
Returns how many milliseconds after the explosion this vehicle's wreck disappears (for root: the default, initially 20000).
Syntax
int getVehicleWreckDelay(vehicle vehicle)Arguments
vehiclevehicle- A vehicle or
root.
Returns
Time in milliseconds, or false for a bad argument.
Example
addEventHandler("onVehicleExplode", root, function()
outputDebugString("Wrak zniknie za " .. getVehicleWreckDelay(source) / 1000 .. " s")
end)