Updating vehicle damage - when?
#5

Quote:
Originally Posted by Faisal_khan
Посмотреть сообщение
Run a loop under OnPlayerUpdate to check the vehicles. Maybe this will work out. Not sure.
simply the worst way you can think of !
Quote:
Originally Posted by LetsOWN[PL]
Посмотреть сообщение
Hi.
... I don't want to give bad advise or something, but I would do it when player leaves vehicle (using OnPlayerExitVehicle public).
Seems most optimal.

Greetz,
LetsOWN
What if the player never leaves the car ?
e.g explodes.

A good way is going to be to use the vehicles damage status update callback
OnVehicleDamageStatusUpdate
NOTE: if you want to go fully pro on this u can make it check how fast its updating the status so there is no overwriting.
Reply


Messages In This Thread
Updating vehicle damage - when? - by liam1412 - 11.04.2013, 17:12
Re: Updating vehicle damage - when? - by Faisal_khan - 11.04.2013, 17:14
Re: Updating vehicle damage - when? - by liam1412 - 11.04.2013, 17:14
Re: Updating vehicle damage - when? - by LetsOWN[PL] - 11.04.2013, 17:15
Re: Updating vehicle damage - when? - by park4bmx - 11.04.2013, 17:18
Re: Updating vehicle damage - when? - by Faisal_khan - 11.04.2013, 17:18
Re: Updating vehicle damage - when? - by liam1412 - 11.04.2013, 17:54
Re: Updating vehicle damage - when? - by park4bmx - 11.04.2013, 18:01

Forum Jump:


Users browsing this thread: 2 Guest(s)