Crash damage
#1

Hi,
I recently downloaded Emmet's callbacks.inc and created health loss on crash with vehicle with OnPlayerCrashVehicle.
Everything is good except that it takes health only from the driver. Is it possible to take health from all passengers?
Reply
#2

Loop through players and check if their vehicle ID is the same as the driver's, if it is, decrease their health as well.
Reply
#3

Quote:
Originally Posted by Sjn
Посмотреть сообщение
Loop through players and check if their vehicle ID is the same as the driver's, if it is, decrease their health as well.
I'll try that, thanks.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)