You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curently if player steps on fire - there is no way to cancel 'On fire' state.
even if you set 'setPedOnFire(ped, false)' this will not cancel TASK_SIMPLE_PLAYER_ON_FIRE.
And while this task is active - player is not able to use Sniper Rifle, or chainsaw.
Expected behaviour obviousy would be to stop TASK_SIMPLE_PLAYER_ON_FIRE when setPedOnFire(ped, false) is executed.
Idially would be to have event: onClientPedSetOfFire which could be canceled, so prevent ped from ignition completelly, because
even if we able to cancel fire, ignition will already cancel sniper rifle aim, or chainsaw attack.
Steps to reproduce
Run this script:
addEventHandler("onClientPreRender", root, function ()
local wasOnFire = isPedOnFire(localPlayer)
local x,y,z = getElementPosition(localPlayer)
extinguishFire(x,y,z,2)
iprint("wasOnFire", wasOnFire)
if wasOnFire then
setPedOnFire(localPlayer, false)
iprint("isOnFire", isPedOnFire(localPlayer))
iprint("Task", getPedTask ( getLocalPlayer(), "secondary", 4 ))
end
end)
Ignite your self.
Version
Client: Multi Theft Auto v1.6-release-22293
Server: MTA:SA Server v1.6-release-21852
Describe the bug
Curently if player steps on fire - there is no way to cancel 'On fire' state.
even if you set 'setPedOnFire(ped, false)' this will not cancel TASK_SIMPLE_PLAYER_ON_FIRE.
And while this task is active - player is not able to use Sniper Rifle, or chainsaw.
Expected behaviour obviousy would be to stop TASK_SIMPLE_PLAYER_ON_FIRE when setPedOnFire(ped, false) is executed.
Idially would be to have event:
onClientPedSetOfFire
which could be canceled, so prevent ped from ignition completelly, becauseeven if we able to cancel fire, ignition will already cancel sniper rifle aim, or chainsaw attack.
Steps to reproduce
Version
Client: Multi Theft Auto v1.6-release-22293
Server: MTA:SA Server v1.6-release-21852
Additional context
https://youtu.be/_eULbMsWnss
Relevant log output
No response
Security Policy
The text was updated successfully, but these errors were encountered: