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

 How To Spawn A Object Using Cleo Script

 How To Spawn a object using cleo??
 
TLFdjobaw  
Posted: Monday, Jun 25 2012, 10:28
Quote Post


Un-skilled Collisions Modders
Group Icon
Group: Members
Joined: Jan 20, 2012

in.gif

XXXXX



Does Anyone know to spawn object using cleo script in easy way?? I learned some tutorial i still not understand... please tell me.. is there any easy way?????
Users WebsitePM
  Top
 

 
arijitsen  
Posted: Monday, Jun 25 2012, 10:37
Quote Post


Modder,Gamer & GFX Artist
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



QUOTE (TLFdjobaw @ Monday, Jun 25 2012, 10:28)
Does Anyone know to spawn object using cleo script in easy way?? I learned some tutorial i still not understand... please tell me.. is there any easy way?????

Ya there is an easy way.
Just follow the steps this code will spawn a jump ramp on pressing backspace :


{$CLEO .cs}
:JumpR00
03A4: name_thread 'JPR'

:JumpR01
0001: wait 0 ms
if
0256: player $PLAYER_CHAR defined
004D: jump_if_false @JumpR01
if
00E1: key_pressed 8//--------- backspace
004D: jump_if_false @JumpR01
0247: request_model 1655

:JumpR02
0001: wait 0 ms
if
0248: model 1655 available
004D: jump_if_false @JumpR02
0172: 2@ = actor $PLAYER_ACTOR z_angle
04C4: create_coordinate 11@ 12@ 13@ from_actor $PLAYER_ACTOR offset 0.0 14.5 -1.8
0107: 1@ = create_object 1655 at 11@ 12@ 13@ //this is the place where the object will be placed
0177: set_object 1@ z_angle_to 2@ //it is the angle of the object
0001: wait 0 ms
0249: release_model 1655
0001: wait 1000 ms
01C4: remove_references_to_object 1@ // This object will now disappear when the player looks away
0002: jump @JumpR01





If you have still any doubts PM me .Feel free to contact me. icon14.gif
Users WebsitePM
  Top
 

 
TLFdjobaw  
Posted: Monday, Jun 25 2012, 10:58
Quote Post


Un-skilled Collisions Modders
Group Icon
Group: Members
Joined: Jan 20, 2012

in.gif

XXXXX



but, how to change the spawned object?? id like to chance the jump ramp into junk car parts [la_f*ckar1]
Users WebsitePM
  Top
 

 
arijitsen  
Posted: Monday, Jun 25 2012, 11:02
Quote Post


Modder,Gamer & GFX Artist
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



QUOTE (TLFdjobaw @ Monday, Jun 25 2012, 10:58)
but, how to change the spawned object?? id like to chance the jump ramp into junk car parts [la_f*ckar1]

Change the no. 1655 to 3594
These are the model nos.
Users WebsitePM
  Top
 

 
TLFdjobaw  
Posted: Monday, Jun 25 2012, 11:24
Quote Post


Un-skilled Collisions Modders
Group Icon
Group: Members
Joined: Jan 20, 2012

in.gif

XXXXX



thanks... but how do you know if la_f*ckar id is 3594??? what tools did you use?
Users WebsitePM
  Top
 

 
arijitsen  
Posted: Monday, Jun 25 2012, 11:27
Quote Post


Modder,Gamer & GFX Artist
Group Icon
Group: Members
Joined: Jun 19, 2012

ia.gif

XXXXX



QUOTE (TLFdjobaw @ Monday, Jun 25 2012, 11:24)
thanks... but how do you know if la_f*ckar id is 3594??? what tools did you use?

Use map editor for sanandreas by tony. Any doubts regarding modding just PM me or put the ques. in the forums.
Users WebsitePM
  Top
 

 
TLFdjobaw  
Posted: Monday, Jun 25 2012, 11:35
Quote Post


Un-skilled Collisions Modders
Group Icon
Group: Members
Joined: Jan 20, 2012

in.gif

XXXXX



ok.. thanks for your helps.. icon14.gif
Users WebsitePM
  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