Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      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

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Question About Spawning Objects


sirusxxxx
 Share

Recommended Posts

 

00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere 706.0528 -469.4740 16.33594 radius  200.0  200.0  200.0

 

 

 

This code spawns an object when the person is on foot, is their a way to spawn the same object for both on foot or in vehicle?

Link to comment
Share on other sites

 

 

 

036A: put_actor [email protected] in_car [email protected]    

 

 

 

0430: put_actor [email protected] into_car $TEMPVAR_ACTOR_CAR passenger_seat 0 

 

 

 

 

072A: put_actor $ACTOR_SWEET into_car $SWEET_CAR driverseat 

driver

 

nad that one makes the actor enter the car as a passenger anywhere

 

072B: put_actor $ACTOR_OG_LOC into_car [email protected] passengerseat -1 

 

Link to comment
Share on other sites

 

00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere 706.0528 -469.4740 16.33594 radius  200.0  200.0  200.0

 

 

 

This code spawns an object when the person is on foot, is their a way to spawn the same object for both on foot or in vehicle?

this code don't spawn an object

this code checks if an actor is near the defined location on foot

 

there are several opcodes for a near_location check

 

00EC:   actor $PLAYER_ACTOR 0 near_point 1812.369 -1929.922 radius 80.0 80.0 00ED:   actor $PLAYER_ACTOR 0 near_point 2043.68 -1635.73 radius 4.0 4.0 on_foot 00EE:   actor $PLAYER_ACTOR 0 near_point 2067.4 -1831.2 radius 15.0 15.0 in_car 00EF:   actor [email protected] 0 near_point 2196.239 -1191.459 radius 2.0 2.0 stopped 00F0:   actor [email protected] 0 near_point 2175.29 -2259.22 radius 3.0 3.0 stopped_on_foot 00F2:   actor [email protected] near_actor $PLAYER_ACTOR radius 20.0 20.0 0 00F3:   actor $PLAYER_ACTOR near_actor [email protected] radius 2.0 2.0 0 on_foot 00F4:   actor [email protected] near_actor $PLAYER_ACTOR radius 6.0 6.0 0 in_car 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere 658.0068 -1866.313 4.4537 radius 15.0 15.0 15.0 00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere $X_Johnson_house $Y_Johnson_house $Z_Johnson_house radius 1.0 1.0 2.0 on_foot 0100:   actor $PLAYER_ACTOR in_sphere 1793.068 -1904.254 12.3989 radius 4.0 4.0 4.0 sphere 1 in_car 0101:   actor $PLAYER_ACTOR in_sphere [email protected] [email protected] [email protected] radius 5.0 5.0 3.0 sphere 0 stopped 0102:   actor $PLAYER_ACTOR in_sphere 2468.8 -1278.2 29.1 radius 1.2 1.2 3.0 sphere 1 stopped_on_foot 0103:   actor $PLAYER_ACTOR in_sphere -1577.942 52.6333 16.3281 radius 4.0 4.0 6.0 sphere 0 stopped_in_car 0104:   actor $PLAYER_ACTOR near_actor [email protected] radius 15.0 15.0 15.0 sphere 0 0105:   actor $PLAYER_ACTOR near_actor [email protected]([email protected],9i) radius 5.0 5.0 2.0 sphere 0 on_foot 0106:   actor $PLAYER_ACTOR near_actor [email protected] radius 15.0 15.0 15.0 0 in_car

 

Link to comment
Share on other sites

@ ZAZ: I guess he knows and uses that code as a term 'which spawns' (if true) the objects.....tounge.gif

 

 

Link to comment
Share on other sites

What a coincidence! icon14.gif

I been searching for someone who has spawning objects tutorial, but there are nothing. confused.gif

Well, I also would like to ask. smile.gifsmile.gif

Can you please give the steps of spawning objects?

And also how to rotate it,

Thank you! biggrin.gifbiggrin.gif

Link to comment
Share on other sites

 

@ ZAZ: I guess he knows and uses that code as a term 'which spawns' (if true) the objects.....tounge.gif

How should I know what he know? I can only comment what he posted.

And if he used 00FF: to spawn an object and want to be able to spawn in every case he will find the right code in my posted exemples.

Link to comment
Share on other sites

@ ZAZ:

 

Well thats true

 

@ topic:

 

use opcode search tool

 

 

 

00A5: [email protected] = create_car #PONY at 0.0 0.0 0.0 

 

 

 

and thats a code which spawns a wooden cabin ( extraction of my save-cabin mod)

its very easy

 

 

0247: load_model 18267 0249: release_model 18267 038B: load_requested_models 0107: [email protected] = create_object 18267 at -1623.119 -1902.598 88.0346

 

 

 

Link to comment
Share on other sites

I ment I am using the invisible check to trigger the spawn object, not to create the spawn object its self.

 

This is so you dont have to walk into a fixed sphere to trigger the spawn object, instead if you are in the radius on a foot or in a car it will appear automaticlly.

 

ZAZ

Thanks those are the codes I was looking for I wanted a on foot or in car invisible check to trigger the spawn object, instead of just the on foot trigger.

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.