Updating vehicle damage - when?
#6

Quote:
Originally Posted by liam1412
Посмотреть сообщение
I was thinking about doing a processVehicleDamage() function on a timer every 30 seconds. Would that be heavy on resources.
Yeah that won't cause a problem. That was what I thought earlier before posting here.
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
No I won't do that.

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
simply the worst way you can think of !


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
Damn this was added in 0.3a and how could I never come across this!
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: 1 Guest(s)