Hy guys, I need help.
I wanted to make a object and then move it to an actor, but I failed.
Here is the script:
| CODE |
{$CLEO .cs} thread 'GIC' 0A95: enable_thread_saving
Model.Load(#BMYDRUG)
:Model_Check wait 0 ms 077E: get_active_interior_to $ACTIVE_INTERIOR if and Model.Available(#BMYDRUG) $ACTIVE_INTERIOR == 0 jf @Model_Check
Actor.Create(1@, Dealer, #BMYDRUG, 191.4533, -107.3443, 1.5489)
:Check_2 wait 0 ms if and 00F3: actor $PLAYER_ACTOR near_actor 1@ radius 15.0 15.0 0 on_foot 0AB0: key_pressed 0x4D jf @Check_2
00A0: store_actor $PLAYER_ACTOR position_to 5@ 6@ 7@ Object.Create(2@, -201, 5@, 6@, 7@) 0392: make_object 2@ moveable 1 wait 100 ms 04C4: store_coords_to 8@ 9@ 10@ from_actor 1@ with_offset 1.0 1.0 0.0 11@ = 5.0 12@ = 5.0 13@ = 0.0 034E: move_object 2@ to 8@ 9@ 10@ speed 11@ 12@ 13@ flag 1
:Check_3 wait 0 ms if 04E6: object 2@ near_point 8@ 9@ 10@ radius 0.2 0.2 0.2 flag 0 jf @Check_3
wait 1500 ms Object.Destroy(2@)
Model.Destroy(#BMYDRUG) 0A93: end_custom_thread |
So can someone fix it, please ?