Jump to content

Interior Check


Recommended Posts

Ok, I found one. Is there somwhere I can go to find out what all the different interior numbers are?

 

(BTW, what I was trying to do was make somthing happen when I go inside all buildings, this is how I did it (it works)):

 

 

077e: get_active_interior 1@0001: wait 0 ms00D6: if1@ > 0

 

 

Like I asked before, does anyone have an interior list? I want to make my code a little more specific.

 

Thanks,

-DoX

Edited by Dox
Link to comment
https://gtaforums.com/topic/274383-interior-check/#findComment-4176617
Share on other sites

you can check it yourself by looking at map section of the forum, ipl definitions are needed here.

because there are groups of buildings placed in interiors your solution is quite unlikely to be optimal using interior number. what you will probably need to learn are EnEx entries in ipl files. then use this:

 

094B=2,get_actor %1d% currently_used_EnEx_name_store_to %2d%;; 16-byte strings 

 

and you will be able to extinguish not by interior but by "building" the actor has entered and most of all you never gonna have to look for these interior numbers.

example code:

 

094B: get_actor $PLAYER_ACTOR currently_used_EnEx_name_store_to v$AAA // 16-byte strings 00D6: if 08F9:   v$AAA == "FDPIZA" // 16-byte strings 004D: jump_if_false @SOMEWHEREdo X

 

will execute declared action X when player visits pizza shop.

Edit:

when you face multiple EnEx problem use following code to extinguish between enterances:

 

094C=5,get_actor %1d% currently_used_EnEx_3D_coord_to %2d% %3d% %4d% number_to %5d% 

 

Edited by PLPynton
Link to comment
https://gtaforums.com/topic/274383-interior-check/#findComment-4176972
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.