How can i get the Handle of edit object

Status
Not open for further replies.
Joined
Aug 20, 2019
Messages
7
Likes
0
Points
1
1
#1
Is it posible to get object which is in edit mode, I mean the object which has xyz axis and we can move it or rotate it

And also is it posible make the script automaticly press the save button of the edit object ?
 

Zin

Well-Known Member
Joined
Aug 1, 2013
Messages
1,695
Likes
115
Points
208
Website
youtube.com
#2
0BCD and 0BCE opcodes. Don't know how to get handle though. You can probably find the object by looping through the object pool I'd gather that "edit objects" have different properties to the usual object so maybe you can find a correlation and then just filter the object pool for whatever. It may take some time and experimentation which you clearly don't have as you made like 3 posts here about this when all it took was me to do an opcode search about samp objects.
 
OP
OP
S
Joined
Aug 20, 2019
Messages
7
Likes
0
Points
1
1
#3
0BCD and 0BCE opcodes. Don't know how to get handle though. You can probably find the object by looping through the object pool I'd gather that "edit objects" have different properties to the usual object so maybe you can find a correlation and then just filter the object pool for whatever. It may take some time and experimentation which you clearly don't have as you made like 3 posts here about this when all it took was me to do an opcode search about samp objects.
Thanks im able to get the handle via nearby object opecode
but the problem im facing now is the object doesnt get saved, it still has its movement axis buttons on ( i mean i need the script to press the save button of it


here the code i used to test what it dos is it moves the object up a bit and send save request,
PHP:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
thread 'drift'

:key      
wait 0
if key_down 53
jf @key
jump @ob

:ob
wait 0
00A0: store_actor $PLAYER_ACTOR position_to $X $Y $Z
if
0AE3: 15@ = random_object_near_point $X $Y $Z in_radius 5.0 find_next 0 //IF and SET
jf @not
01BB: store_object 15@ position_to $ox $oy 20@
20@ += 10.0
01BC: put_object 15@ at $ox $oy 20@
0BCD: samp send_edit_object playerobject 0 object 15@ response 1 pos $ox $oy 20@  rotation 0 90 0
jump @key
     
     
:not
wait 0
print "NO OBJECTS" 1000
jump @key
pls help @Zin
 
Last edited:
Status
Not open for further replies.
Top