Dangta Posted June 25, 2005 Share Posted June 25, 2005 (edited) 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 June 26, 2005 by Dangta Link to comment https://gtaforums.com/topic/199454-create-actor/ Share on other sites More sharing options...
ocram88 Posted June 25, 2005 Share Posted June 25, 2005 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 More sharing options...
trx Posted June 25, 2005 Share Posted June 25, 2005 0247: request_model (model_id)038B: load_requested_models009A: $PED = create_actor 4 (model_id) at X Y Z where (model_id) is a model number as listed in the peds.ide file. X Y Z are the coordinats of course. edit: ah i was beat =) Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2932579 Share on other sites More sharing options...
Dangta Posted June 25, 2005 Author Share Posted June 25, 2005 When i compile it says #SPECIAL01 is not defined in my .ide files. What should i change it to? Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2933745 Share on other sites More sharing options...
Quadropheniac90 Posted June 25, 2005 Share Posted June 25, 2005 Change it to 290 to get create_actor 4 290 at X Y Z. The special actor slots begin at 290 and end at 299. Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2933816 Share on other sites More sharing options...
ocram88 Posted June 25, 2005 Share Posted June 25, 2005 it is define in peds.ide 290, special01, generic, CIVMALE, STAT_STD_MISSION, man, 1FFF, 0, null, 9,9, PED_TYPE_SPC,0 ,0 Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2933824 Share on other sites More sharing options...
Quadropheniac90 Posted June 25, 2005 Share Posted June 25, 2005 I know, that's what I said isn't it? But I can't create cars, then I get a memory error Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2933836 Share on other sites More sharing options...
Dangta Posted June 25, 2005 Author Share Posted June 25, 2005 Thanks guys, i've been looking at the car placing tutorial, but it isn't for the stripped main.scm. How can i implement say a go kart in? Also could you explain the code for it and not just post it. Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2933977 Share on other sites More sharing options...
ocram88 Posted June 25, 2005 Share Posted June 25, 2005 do yo ask me? if yes, then i will post it later Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2933990 Share on other sites More sharing options...
Dangta Posted June 25, 2005 Author Share Posted June 25, 2005 I'm asking anyone who can help, it's appreciated. Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2934053 Share on other sites More sharing options...
ocram88 Posted June 25, 2005 Share Posted June 25, 2005 woha, racing with go kart is fun 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 More sharing options...
Dangta Posted June 25, 2005 Author Share Posted June 25, 2005 (edited) Where do i place these? |EDIT| Nevermind got it! For some reason it spawns 2 though. Edited June 25, 2005 by Dangta Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2934103 Share on other sites More sharing options...
ocram88 Posted June 26, 2005 Share Posted June 26, 2005 1st spawn the first go kart and 2nd the second go kart Link to comment https://gtaforums.com/topic/199454-create-actor/#findComment-2934463 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now