Jump to content

Create actor?


Recommended Posts

Hi guys, i've been searching around but i'm not totally clear on how to create an actor which basically does nothing at the moment but stands there. Perhaps make it use the Ken Rosenberg model. I am using the stripped code below.

 

 

DEFINE VERSION SA 0.330002: jump ££Second_SegmentDEFINE MEMORY  100; Equals Mission Builder type global variable range $2 to $10939;40145:Second_Segment0002: jump ££Third_SegmentDEFINE OBJECTS  0:Third_Segment0002: jump ££Fourth_SegmentDEFINE MISSIONS  0:Fourth_Segment0002: jump ££Fifth_SegmentDEFINE EXTERNAL_SCRIPTS  0:Fifth_Segment0002: jump ££Sixth_SegmentDEFINE UNKNOWN_FIFTH_SEGMENTDEFINE UNKNOWN1  0:Sixth_Segment0002: jump ££MAIN_1DEFINE UNKNOWN_SIXTH_SEGMENTDEFINE UNKNOWN3  2146;-------------MAIN---------------:MAIN_103A4: name_thread 'MAIN'016A: fade  0 ()  0 ms01F0: set_max_wanted_level_to  00111: set_wasted_busted_check_to  0 (disabled)00C0: set_current_time  8  004E4: unknown_refresh_game_renderer_at  2366.62 -655.9903CB: set_camera  2366.62 -655.99 129.050053: $PLAYER_CHAR = create_player  0 at  2366.62 -655.99 128.05087B: set_player $PLAYER_CHAR clothes "VEST" "VEST"  0087B: set_player $PLAYER_CHAR clothes "JEANSDENIM" "JEANS"  2087B: set_player $PLAYER_CHAR clothes "SNEAKERBINCBLK" "SNEAKER"  3087B: set_player $PLAYER_CHAR clothes "PLAYER_FACE" "HEAD"  1070D: $PLAYER_CHAR0793: (unknown)016C: restart if wasted at  2366.62 -655.99 128.05 angle  137.0 unknown  0016D: restart_if_busted at  2366.62 -655.99 128.05 angle  137.0 unknown  0  014B: $playerspawn_car = init_parked_car_generator 495 -1 -1  1 alarm  0 door_lock  0  0  10000 at  2367.49 -645.29 127.32 angle  -90.0;;init the car014C: set_parked_car_generator $playerspawn_car cars_to_generate_to  101;; set car to available014B: $playerspawn_car2 = init_parked_car_generator 571 -1 -1  1 alarm  0 door_lock  0  0  10000 at  2375.89 -655.02 128.06 angle  -90.0;;init the car014C: set_parked_car_generator $playerspawn_car2 cars_to_generate_to  101;; set car to available014B: $playerspawn_heli = init_parked_car_generator 444 -1 -1  1 alarm  0 door_lock  0  0  10000 at  2403.336 -663.0945 127.0771 angle  0.0;;init the car014C: set_parked_car_generator $playerspawn_heli cars_to_generate_to  101;; set car to available016A: fade  1 (back)  0 ms004F: create_thread ££Actor     :LOOP0001: wait  1000 ms0002: jump ££LOOP:Actor023C: load_special_actor  1 'ROSE'038B: load_requested_models    :Actor20001: wait  0 ms00D6: if  0023D:   special_actor  1 loaded004D: jump_if_false ££Actor2009A: $Special_Actor = create_actor  23 290 at  2368.62 -655.99 128.050173: set_actor $Special_Actor z_angle_to  180.0      02AB: set_actor $Special_Actor immunities  1  1  1  1  1004E: end_thread  

 

 

Help is appreciated thanks!

Edited by Dangta
Link to comment
https://gtaforums.com/topic/199454-create-actor/
Share on other sites

Here

 

 

DEFINE VERSION SA 0.330002: jump ££Second_SegmentDEFINE MEMORY  100; Equals Mission Builder type global variable range $2 to $10939;40145:Second_Segment0002: jump ££Third_SegmentDEFINE OBJECTS  0:Third_Segment0002: jump ££Fourth_SegmentDEFINE MISSIONS  0:Fourth_Segment0002: jump ££Fifth_SegmentDEFINE EXTERNAL_SCRIPTS  0:Fifth_Segment0002: jump ££Sixth_SegmentDEFINE UNKNOWN_FIFTH_SEGMENTDEFINE UNKNOWN1  0:Sixth_Segment0002: jump ££MAIN_1DEFINE UNKNOWN_SIXTH_SEGMENTDEFINE UNKNOWN3  2146;-------------MAIN---------------:MAIN_103A4: name_thread 'MAIN'016A: fade  0 ()  0 ms01F0: set_max_wanted_level_to  00111: set_wasted_busted_check_to  0 (disabled)00C0: set_current_time  8  004E4: unknown_refresh_game_renderer_at  2488.562 -1666.86403CB: set_camera  2488.562 -1666.864  13.37570053: $PLAYER_CHAR = create_player  0 at  2488.562 -1666.864  12.8757087B: set_player $PLAYER_CHAR clothes "VEST" "VEST"  0087B: set_player $PLAYER_CHAR clothes "JEANSDENIM" "JEANS"  2087B: set_player $PLAYER_CHAR clothes "SNEAKERBINCBLK" "SNEAKER"  3087B: set_player $PLAYER_CHAR clothes "PLAYER_FACE" "HEAD"  1070D: $PLAYER_CHAR0793: (unknown)016C: restart if wasted at  2488.562 -1666.864  12.8757 angle  137.0 unknown  0016D: restart_if_busted at  2488.562 -1666.864  12.8757 angle  137.0 unknown  0 016A: fade  1 (back)  0 ms004F: create_thread ££Actor :LOOP0001: wait  1000 ms0002: jump ££LOOP:Actor023C: load_special_actor  1 'ROSE'038B: load_requested_models    :Actor20001: wait  0 ms00D6: if  0023D:   special_actor  1 loaded004D: jump_if_false ££Actor2009A: $Special_Actor = create_actor  23 #SPECIAL01 at  2488.562 -1664.864  12.87570173: set_actor $Special_Actor z_angle_to  180.0004E: end_thread

 

Link to comment
https://gtaforums.com/topic/199454-create-actor/#findComment-2932575
Share on other sites

woha, racing with go kart is fun cool.gif

 

1st

 

014B: $Carr = init_parked_car_generator #KART -1 -1  1 alarm  0 door_lock  0  0  10000 at  2492.0 -1657.0  15.0 angle  90.0;;init the car014C: set_parked_car_generator $Carr cars_to_generate_to  101;; set car to available

 

 

2nd

 

004F: create_thread ££Car;; Create the Thread:Car0247: request_model #KART  ;; request the Kart038B: load_requested_models;; load the requested Cars(Kart)  :Car20001: wait  0 ms             ;; wait 0 milliseconds00D6: if  00248:   model #KART available;; ask if the model Kart available004D: jump_if_false ££Car2   ;; if false, the script will jump to Label Car200A5: $CAR = create_car #KART at  2488.562 -1662.864  12.8757;; Create the Car at X Y Z0175: set_car $CAR z_angle_to  270.0;; set the z angle of this car004E: end_thread;; close the thread

 

Link to comment
https://gtaforums.com/topic/199454-create-actor/#findComment-2934071
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.