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

 Cleo Help

 Game Crashes
 
RobertNick  
Posted: Friday, Aug 17 2012, 15:44
Quote Post


Drifter/Triad/Assassin
Group Icon
Group: Members
Joined: Aug 17, 2012

anarchist.gif

XXXXX



Can someone please tell me why is the game crashing when i use this ?

CODE
{$CLEO .cs}
:banshee
03A4: name_thread "BANSHEE"
0001: wait  1000 ms
0A95: enable_thread_saving

014B: 1@ = init_parked_car_generator #BANSHEE -1 -1  1 alarm  0 door_lock  0  0  10000 at  -2046.3314  146.715  28.2456 angle  134.9113
014C: set_parked_car_generator 1@ cars_to_generate_to  101
08A6: set_car 1@ door 1 rotation_to 0.65

0A93: end_custom_thread


The car spawns behind CJ's garage in Doherty. If I add
CODE
08A6: set_car 1@ door 1 rotation_to 0.65
the game crashes.

This post has been edited by RobertNick on Friday, Aug 17 2012, 15:46
PMYahoo
  Top
 

 
SilentPL  
Posted: Friday, Aug 17 2012, 15:45
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




Car generator handles are not suitable for opcodes which mess with the car in more specific way (in this case, 08A6). You can't do it like that.
Users WebsitePMMSNXbox Live
  Top
 

 
RobertNick  
Posted: Friday, Aug 17 2012, 15:54
Quote Post


Drifter/Triad/Assassin
Group Icon
Group: Members
Joined: Aug 17, 2012

anarchist.gif

XXXXX



So how should I do it ? I want to spawn a car with the hood opened.
PMYahoo
  Top
 

 
UNRATED69  
Posted: Friday, Aug 17 2012, 17:38
Quote Post


suck my hammer
Group Icon
Group: Leone Family Mafia
Joined: May 20, 2010

pride.gif

XXXXX



CODE
{$CLEO .cs}
0000:

:1
wait 0
if
player.Defined(0)
jf @1
if
00EC:   actor $PLAYER_ACTOR sphere 0 near_point -2046.3314  146.715 radius 80.0 80.0
jf @1
model.Load(#BANSHEE)
038B: load_requested_models
00A5: 0@ = create_car #BANSHEE at -2046.3314  146.715  28.2456
0175: set_car 0@ Z_angle_to 134.9113
08A6: set_car 0@ componentB 0 rotation_to 0.65

:2
wait 0
if
80EC:  not actor $PLAYER_ACTOR sphere 0 near_point -2046.3314  146.715 radius 80.0 80.0
jf @2
car.RemoveReferences(0@)
model.Destroy(#BANSHEE)
jump @1
Users WebsitePMPlayStation Network
  Top
 

 
RobertNick  
Posted: Saturday, Aug 18 2012, 08:55
Quote Post


Drifter/Triad/Assassin
Group Icon
Group: Members
Joined: Aug 17, 2012

anarchist.gif

XXXXX



This works great, thanks !
PMYahoo
  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