IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Move object to actor

 
Ify24  
Posted: Saturday, Sep 1 2012, 19:12
Quote Post


0x00000000 --> invisible
Group Icon
Group: Members
Joined: Aug 17, 2011

yu.gif

XXXXX



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 ?
PM
  Top
 

 
Bad.boy!  
Posted: Saturday, Sep 1 2012, 19:17
Quote Post


SA modder
Group Icon
Group: Members
Joined: Jun 20, 2010

nl.gif

XXXXX



Loop the move part.
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG