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.

Disable script when going in interiors


AlbertWesker
 Share

Recommended Posts

I have a zombie script installed but it crashes when i go inside a building, is it possible to write it in a way that the zombie mod is disabled when i enter a interior?

 

This is the zombie mod i use:

 

:NONAME
script_name 'NONAME' 
060A: create_decision_maker_type 5 store_to [email protected] // decision\allowed\m_.ped files 
0708: reset_decision_maker [email protected] event 31 
0708: reset_decision_maker [email protected] event 36 
0708: reset_decision_maker [email protected] event 9 
0709: set_decision_maker [email protected] on_event 36 taskID 1000 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 1 // see *.ped files 
0709: set_decision_maker [email protected] on_event 9 taskID 1000 respect 0.0 hate 100.0 like 0.0 dislike 100.0 in_car 1 on_foot 1 // see *.ped files 
0709: set_decision_maker [email protected] on_event 31 taskID 200 respect 100.0 hate 100.0 like 100.0 dislike 100.0 in_car 1 on_foot 1 // see *.ped files 
077E: get_active_interior_to [email protected] 

:NONAME_146
wait 0 
if 
   Player.Defined(0)
jf @NONAME_507 
[email protected] = 0 

:NONAME_172
if 
  [email protected]([email protected],12i) == 1 
jf @NONAME_270 
if or
   Actor.Dead([email protected]([email protected],12i))
8104:   not actor $PLAYER_ACTOR near_actor [email protected]([email protected],12i) radius 150.0 150.0 150.0 sphere 0 
jf @NONAME_263 
Actor.RemoveReferences([email protected]([email protected],12i))
[email protected]([email protected],12i) = 0 

:NONAME_263
jump @NONAME_486 

:NONAME_270
wait 0 
0208: [email protected] = random_float_in_ranges -60.0 60.0 
0208: [email protected] = random_float_in_ranges -60.0 60.0 
04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset [email protected] [email protected] 0.0 
092E: get_water_height_at [email protected] [email protected] ignore_waves 0 store_to [email protected] 
if and
80FE:   not actor $PLAYER_ACTOR sphere 0 in_sphere [email protected] [email protected] [email protected] radius 10.0 10.0 10.0 
80C2:   not sphere_onscreen [email protected] [email protected] [email protected] radius 5.0 
   not [email protected] >= 0.0 
jf @NONAME_417 
jump @NONAME_424 

:NONAME_417
jump @NONAME_270 

:NONAME_424
0376: [email protected]([email protected],12i) = create_random_actor_at [email protected] [email protected] -100.0 
NONAME_514()
060B: set_actor [email protected]([email protected],12i) decision_maker_to [email protected] 
05E2: AS_actor [email protected]([email protected],12i) kill_actor $PLAYER_ACTOR 
[email protected]([email protected],12i) = 1 

:NONAME_486
[email protected] += 1 
  [email protected] > 11 
jf @NONAME_172 

:NONAME_507
jump @NONAME_146 

:NONAME_514
0209: [email protected] = random_int_in_ranges 0 3 
if 
  [email protected] == 0 
jf @NONAME_548 
jump @NONAME_591 

:NONAME_548
if 
  [email protected] == 1 
jf @NONAME_573 
jump @NONAME_591 

:NONAME_573
if 
  [email protected] == 2 
jf @NONAME_591 

:NONAME_591
0332: set_actor [email protected]([email protected],12i) bleeding 1 
return 

Link to comment
Share on other sites

  • 1 month later...
On 2/22/2021 at 5:38 AM, Strs said:

077E: get_active_interior_to $interior

$interior == 0 //o is when player is not in  interior
 

 

 

Thanks man, i was actually able to fix it! 

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.