Dox Posted April 13, 2007 Share Posted April 13, 2007 Hey, do any of you guys know if there is an opcode that checks if an actor is in an interior? I have tried searching for this but I couldn't find it. Thanks, -DoX Link to comment https://gtaforums.com/topic/274383-interior-check/ Share on other sites More sharing options...
PLPynton Posted April 13, 2007 Share Posted April 13, 2007 your question is wrong. actor is always in an interior. there is several. strange, when i type "interior" for option serarch in my ini it returned me at least 2 opcodes you could use. Link to comment https://gtaforums.com/topic/274383-interior-check/#findComment-4176586 Share on other sites More sharing options...
Dox Posted April 13, 2007 Author Share Posted April 13, 2007 (edited) 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 April 13, 2007 by Dox Link to comment https://gtaforums.com/topic/274383-interior-check/#findComment-4176617 Share on other sites More sharing options...
PLPynton Posted April 13, 2007 Share Posted April 13, 2007 (edited) 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 April 13, 2007 by PLPynton Link to comment https://gtaforums.com/topic/274383-interior-check/#findComment-4176972 Share on other sites More sharing options...
ceedj Posted April 13, 2007 Share Posted April 13, 2007 Handy little opcode there PL. Looks like I'll be rewriting some code this summer. Thanks for sharring. Link to comment https://gtaforums.com/topic/274383-interior-check/#findComment-4177122 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