Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Create actor?


Dangta
 Share

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
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
Share on other sites

 

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
Share on other sites

When i compile it says #SPECIAL01 is not defined in my .ide files. What should i change it to?

Link to comment
Share on other sites

Quadropheniac90
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. biggrin.gif
user posted image
Link to comment
Share on other sites

blink.gif

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
Share on other sites

Quadropheniac90
I know, that's what I said isn't it? biggrin.gif But I can't create cars, then I get a memory error mad.gif
user posted image
Link to comment
Share on other sites

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. biggrin.gif

Link to comment
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
Share on other sites

Where do i place these?

 

|EDIT|

 

Nevermind got it! biggrin.gif

 

For some reason it spawns 2 though.

Edited by Dangta
Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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