GetPlayerSurfingDynamicObjectID ?? -
Phil_Cutcliffe - 25.02.2014
Is there any way to detect if a player is surfing a dynamic object?
OR
Is there any way to set a virtual world & interior on a normal create object so I can use the normal GetPlayerSurfingObjectID?
The reason being is because I have tried absolutely everything to prevent people surfing on objects whilst editing them. None of them are sufficient.
Re: GetPlayerSurfingDynamicObjectID ?? -
Mattakil - 26.02.2014
You could use GetObjectPos and IsPlayerInRangeOfPoint, I guess...If they are like within 0.5 of it then freeze them for a few seconds and print a warning. It would make people not do it
Re: GetPlayerSurfingDynamicObjectID ?? -
Threshold - 26.02.2014
Here's what I would do, when they start editing an object, check if they're surfing. If they are, then cancel editing mode. If they're not surfing the object, attach a dynamic area to it, when OnPlayerEnterDynamicArea is called, cancel editing. Seems easy enough.
Re: GetPlayerSurfingDynamicObjectID ?? -
Richie© - 26.02.2014
The problem is that sa-mp does not have GetPlayerSurfingPlayerObject.
Re: GetPlayerSurfingDynamicObjectID ?? -
Threshold - 26.02.2014
Who said it was a player object?
Re: GetPlayerSurfingDynamicObjectID ?? -
Konstantinos - 26.02.2014
Quote:
Originally Posted by BenzoAMG
Who said it was a player object?
|
Dynamic objects ARE per-player objects and indeed a function as Richie said would be useful.
Re: GetPlayerSurfingDynamicObjectID ?? -
Threshold - 26.02.2014
Oh, Dynamic object.. didn't see it.
Re: GetPlayerSurfingDynamicObjectID ?? -
Phil_Cutcliffe - 26.02.2014
Quote:
Originally Posted by BenzoAMG
Oh, Dynamic object.. didn't see it.
|
Lol as I've put in my other posts I have the solution to check if the player is surfing the object but OnPlayerEditDynamicObject does not update the objects position quick enough. Check my other topics as I had to make another topic with a better title.
Re: GetPlayerSurfingDynamicObjectID ?? -
Pottus - 27.02.2014
Quote:
Originally Posted by Richie©
The problem is that sa-mp does not have GetPlayerSurfingPlayerObject.
|
He could use a regular createobject then just destroy it and swap for a dynamic object when he's done editing.