OnPlayerEditDynamicObject [HELP] "Going Insane!" +Rep
#7

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
I already told you a solution for this. When the player begins to edit the object, (AKA before EditObject or EditDynamicObject is used) save the player's position, save the object's position. Create a dynamic area that is accustomed to either the object or playerid (preferably playerid), then attach that to the object itself. When the callback 'OnPlayerEnterDynamicArea' is called (from Incognito's streamer plugin), check if the area is the one attached to the object, then cancel editing (CancelEdit or whatever it is for dynamic objects...), set the player back to their position that was previously saved. Set the object back to the position that it was originally saved in. Fixed.

NOTE: When creating the dynamic area, make sure the radius isn't that large.
No this does not work sorry. Thanks for the idea but I've exhausted all options possible. And trust me I've done so many different types of checks in so many different ways NONE of them work sufficiently. So I had another idea to totally eliminate the problem. I'm going to set the player editing into a spectator state whilst editing. I won't allow the object position to be updated for other players and that should sort it out. Would probably make it easier for editing also. I'll have a play and see where I get with it.

Works like an absolute charm! Why didn't I think of doing that before? Doh!

Thanks for the suggestions guys!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)