SA-MP Forums Archive
Problem OnVehicleDeath water - Page 2 - 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: Problem OnVehicleDeath water - Page 2 (/showthread.php?tid=668767)



Re: Problem OnVehicleDeath water - Libbyphay - 19.08.2019

Quote:
Originally Posted by Plastikmensch
View Post
...what?
What are you trying to do?
I want create the system with vehicle, the vehicle when fall in water, it no spawn to create last pos.


Re: Problem OnVehicleDeath water - Plastikmensch - 19.08.2019

I still don't understand...
What system?
Why do you want them to fall in water?
What do you mean by "create last pos"?

You can't change that vehicle despawn in water.


Re: Problem OnVehicleDeath water - Libbyphay - 19.08.2019

I want create the system vehicle, it can despawn and repawn when I use command, the pos was saved when use command, when player ride vehicle fall in water, the vehicle no respawn to land again.

Sorry my bad english.


Re: Problem OnVehicleDeath water - Libbyphay - 19.08.2019

Someone help me


Re: Problem OnVehicleDeath water - Z3nx31L - 19.08.2019

WHAT DO YOU MEAN WTF? respawn? no respawn?


Re: Problem OnVehicleDeath water - Libbyphay - 19.08.2019

Ok the vehicle when fall in water, called OnVehicleDeath > SetVehicleToRespawn. I want it can't call SetVehicleToRepsawn, and the vehicle save pos in water.


Re: Problem OnVehicleDeath water - Z3nx31L - 19.08.2019

hmm?


Re: Problem OnVehicleDeath water - Libbyphay - 19.08.2019

Because when SetVehicleToRepsawn, it reset all information of vehicle, examp: fuel, health.


Re: Problem OnVehicleDeath water - Z3nx31L - 19.08.2019

This callback will also be called when a vehicle enters water, but the vehicle can be saved from destruction by teleportation or driving out (if only partially submerged). The callback won't be called a second time, and the vehicle may disappear when the driver exits, or after a short time.


Re: Problem OnVehicleDeath water - Libbyphay - 19.08.2019

Why I can't save all information of vehicle in OnVehicleDeath, I want last pos = current pos.