How to detect if a player is editing an object
#1

Hello, how can I check if a player is editing an object using EditObject() ?
Except using a variable
Reply
#2

OnPlayerEditObject ?
Reply
#3

I don't think a function exists, what's wrong with using a variable?
Reply
#4

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
I don't think a function exists, what's wrong with using a variable?
Nothing, I used it at the end, just wanted to check if this way exists.
Reply
#5

This Callback exists...https://sampwiki.blast.hk/wiki/OnPlayerEditObject
Reply
#6

OnPlayerEditObject is called when player finish editing
Reply
#7

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Not a callback, a function
Reply
#8

Callback... lol. For whatever purpose you're trying to achieve, can it not be done with EditObject and OnPlayerEditObject? You know the start and the end time, so there should be no difficulty.

You could also use the response type 'EDIT_RESPONSE_UPDATE', which means the player moved the object.

https://sampwiki.blast.hk/wiki/ObjectEditionResponesTypes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)