-
-
Notifications
You must be signed in to change notification settings - Fork 501
Description
I have a simple script which creates a ped, and puts you both in a separate vehicle. If you attempt to leave the vehicle (detected via onVehicleStartExit), you'll be killed and your vehicle is destroyed.
Sometimes, the onVehicleStartExit event gets triggered for the ped too, so subsequently they're also killed and vehicle is destroyed. It seems to only occur if you're quite close to the ped, and/or have dealt enough damage to the ped's vehicle recently (unsure on these being the actual criteria for triggering it).
I've uploaded a video below, you can see it's a little inconsistent to trigger. Watch the debug output at the bottom for the event being fired on both the player and ped.
I've also uploaded a test resource, it's fairly simple. Just (re)start the resource - yourself and the ped will be spawned and placed in vehicles, then go close to the ped / hit the ped's vehicle and attempt to exit your own vehicle, which will kill you (and probably the ped too).
Can reproduce this all the way back to r20751, but not r20749 or earlier - which is why I believe it's related to #1907 (cc @Zangomangu)
vehicle.zip <--- test resource