SA-MP Forums Archive
Save/Stop Editing Object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Save/Stop Editing Object (/showthread.php?tid=582654)



Save/Stop Editing Object - TheRaGeLord - 22.07.2015

Hey, I was thinking if there is a function like OnPlayerCancelEditObject... I know there's a function like CancelEdit(playerid).. But I want to make something like When Player Cancel Editing Object then GetObjectPos() and GetObjectRot()


Re: Save/Stop Editing Object - Beckett - 22.07.2015

I don't really get it, could you please elaborate?


You want the object to get back to it's original position after the player has canceled editing?


Re: Save/Stop Editing Object - TheRaGeLord - 22.07.2015

Nope, Lemme explain. Actually I want that When Player Cancels Editing Object's Position. Then After Clicking Cancel or Save I want to get objects Position and Rotation. So that I could Save its new x,y,z position in Scriptfiles.

Edit: I found the solution https://sampwiki.blast.hk/wiki/OnPlayerEditObject