SA-MP Forums Archive
Wreck of car - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wreck of car (/showthread.php?tid=521381)



Wreck of car - cnoopers - 22.06.2014

Hi. It is possible to stay destroyed car(now wreck) in that same place without respawn?


AW: Wreck of car - Campbell- - 22.06.2014

Nope.


Re: Wreck of car - Juvanii - 22.06.2014

Don't know but maybe you should try to get the destroyed vehicle's coordinates then respawn the burning vehicle there with a low health. You should use in this case:

- GetVehicleHealth: https://sampwiki.blast.hk/wiki/GetVehicleHealth
- SetVehicleHealth: https://sampwiki.blast.hk/wiki/SetVehicleHealth
- GetVehiclePos: https://sampwiki.blast.hk/wiki/Function:GetVehiclePos
- CreateVehicle: https://sampwiki.blast.hk/wiki/CreateVehicle


AW: Re: Wreck of car - Campbell- - 22.06.2014

Quote:
Originally Posted by Juvanii
Посмотреть сообщение
Don't know but maybe you should try to get the destroyed vehicle's coordinates then respawn the burning vehicle there with a low health. You should use in this case:

- GetVehicleHealth: https://sampwiki.blast.hk/wiki/GetVehicleHealth
- SetVehicleHealth: https://sampwiki.blast.hk/wiki/SetVehicleHealth
- GetVehiclePos: https://sampwiki.blast.hk/wiki/Function:GetVehiclePos
- CreateVehicle: https://sampwiki.blast.hk/wiki/CreateVehicle
That wouldn't be a wreck. There is only one object of a wreck but you can't keep wrecks of vehicles spawned. You can only keep the actual vehicles spawned.


Re: Wreck of car - Private200 - 22.06.2014

If you mean the burnt vehicle, than no. It is general system in GTA Sa, you might have seen there's no way to keep the burnt vehicle there, as it respawns 10 secs after explosion.


Re: Wreck of car - Juvanii - 22.06.2014

Quote:
Originally Posted by Private200
Посмотреть сообщение
If you mean the burnt vehicle, than no. It is general system in GTA Sa, you might have seen there's no way to keep the burnt vehicle there, as it respawns 10 secs after explosion.
It will not respawn if he doesn't put "SetVehicleToRespawn" under "OnVehicleDeath" so he could make what i said above, by getting the burning vehicle's model and create it in same place of the destroying coordinates with low health and all that would be under "OnVehicleDeath"