SA-MP Forums Archive
Small issue - 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: Small issue (/showthread.php?tid=324083)



Small issue - MP2 - 08.03.2012

When EditAttachedObject is in use, if the object is removed with RemovePlayerAttachedObject, the player stays in edition mode. It should be automatically cancelled.


Re: Small issue - Psymetrix - 08.03.2012

Rather than make a new thread, I'll ask here.

Is it possible to detect when a player presses ESC to cancel SelectObject? At the moment, when a player is using the object selector and presses ESC rather than selecting an object, neither OnPlayerSelectObject or OnPlayerEditObject is called.

It's ruining my object editor


Re: Small issue - ikkentim - 08.03.2012

Quote:
Originally Posted by Psymetrix
Посмотреть сообщение
Rather than make a new thread, I'll ask here.

Is it possible to detect when a player presses ESC to cancel SelectObject? At the moment, when a player is using the object selector and presses ESC rather than selecting an object, neither OnPlayerSelectObject or OnPlayerEditObject is called.

It's ruining my object editor
Not possible, but you could suggest adding KEY_MENU to OnPlayerKeyStateChange