SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 09/08/2011, 12:08 PM   #1
Huge Clucker
Join Date: Oct 2008
Posts: 434
Reputation: 3
Default OnVehicleDeathquestion

I all, i would like to know,

if this callbacks ( OnVehicleDeath ) is called when an player destroy an car ( ex: push it out of mountain witout being into it ).

I would like to know if it called when a car explode for an certain person, but not for other.

scott1 is offline  
Old 09/08/2011, 12:51 PM   #2
Nero_3D's Avatar
Join Date: Jun 2007
Location: Germany
Posts: 2,831
Reputation: 668
Default AW: OnVehicleDeathquestion

OnVehicleDeath gets always called if a vehicle is destroyed also if it explodes

I am not sure what you meant with "for an certain person" because if a vehicle explode everyone could see it
Nero_3D is offline  
Old 11/08/2011, 08:09 AM   #3
Huge Clucker
Join Date: Oct 2008
Posts: 434
Reputation: 3
Default Re : OnVehicleDeathquestion

No sometime ther is desync bug,

like i am on mount chilliad, i push a car, no one into it, it fell on the roof an explose,

someone with desync bug don't see car exploded, this call back will be called?
scott1 is offline  
Old 11/08/2011, 09:13 AM   #4
Grim_'s Avatar
Join Date: Sep 2008
Location: United States
Posts: 2,862
Reputation: 118
Default Re: OnVehicleDeathquestion

That is a rather interesting question, but I would assume so. If the car is exploded on SOMEONES screen, that means that it has been exploded, thus triggering the callback. The person not seeing the car explode is either de-synced or the car streaming in for them is off.

To verify, you could always test the scenario while having prints under the callback. After the test, see if it printed anything.
Grim_ is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 10:28 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.