Jump to content

Go to an Interior


noalcohol

Recommended Posts

GTA SA

 

Hey, I didn't see any tutorial to go to an interior.

Please tell me the details! How to go to an interior, please! sad.gifsad.gifsad.gifsad.gif

Also give me example.

 

 

Edited by noalcohol
Link to comment
Share on other sites

this is my 'teleport into Wuzis betshop script:

 

 

set this code in your script:

 

016A: fade 0 time 1000 

 

 

then, after it:

 

 

04BB: select_interior 1 

 

//you find a list of all interiors in sannybiulder help

 

and:

 

 

03CB: set_rendering_origin_at -2158.418 642.5994 1052.375 00A1: put_actor $PLAYER_ACTOR at -2158.418 642.5994 1052.375 0860: link_actor $PLAYER_ACTOR to_interior 1 0001: wait 500 ms 016A: fade 1 time 1000 

 

 

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'WUZIBET' 0001: wait 1000 ms :WUZIBET_160001: wait 0 ms 00D6: if 0256:   player $PLAYER_CHAR defined 004D: jump_if_false @WUZIBET_16 00D6: if and0038:   $ONMISSION == 0 80DF:   not actor $PLAYER_ACTOR driving 00FF:   actor $PLAYER_ACTOR sphere 1 in_sphere -2155.779 645.5449 52.3672 radius 1.0 1.0 1.0 on_foot 004D: jump_if_false @WUZIBET_16 016A: fade 0 time 1000  ////////////////////////////////////////////////////////////////////0001: wait 1000 ms 04BB: select_interior 1 /////////////////////////////////////////////////////////////////////04E4: unknown_refresh_game_renderer_at -2158.418 642.5994 ///////////////////////////////////////////03CB: set_rendering_origin_at -2158.418 642.5994 1052.375 ////////////////////////////////////////////////00A1: put_actor $PLAYER_ACTOR at -2158.418 642.5994 1052.375 ///////////////////////////////////////////0860: link_actor $PLAYER_ACTOR to_interior 1 ///////////////////////////////////////////////////////////////0001: wait 500 ms 016A: fade 1 time 1000 0007: 1@ = -2157.389 0007: 2@ = 635.4733 0007: 3@ = 52.3828 0007: 4@ = 269.5582 :WUZIBET_2200001: wait 0 ms 00D6: if 0256:   player $PLAYER_CHAR defined 004D: jump_if_false @WUZIBET_220 00D6: if 00FF:   actor $PLAYER_ACTOR sphere 1 in_sphere -2170.35 645.9218 1057.594 radius 1.0 1.0 1.0 on_foot 004D: jump_if_false @WUZIBET_220 016A: fade 0 time 1000 ////////////////////////////////////0001: wait 1000 ms 04BB: select_interior 0 ////////////////// no interior > normal //////////////////////////////////04E4: unknown_refresh_game_renderer_at 1@ 2@ 03CB: set_rendering_origin_at 1@ 2@ 3@ 00A1: put_actor $PLAYER_ACTOR at 1@ 2@ 3@ 0173: set_actor $PLAYER_ACTOR Z_angle_to 4@ 0860: link_actor $PLAYER_ACTOR to_interior 0 0001: wait 500 ms 016A: fade 1 time 1000 0001: wait 1000 ms 0002: jump @WUZIBET_16 

 

Link to comment
Share on other sites

Nice, dude! Thanks for the hints! But I still don't understand 'bout these:

(If you don't mind, please answer icon14.gif )

* There are 4 0007 opcodes with local variables

 

0007: 1@ = -2157.3890007: 2@ = 635.47330007: 3@ = 52.38280007: 4@ = 269.5582

 

The numbers like 635.4733, 52.3828, and so on... What are they? Coordinates?

 

Thanks! icon14.gif

Edited by 12jango
Link to comment
Share on other sites

They're the coords. Siggi stores them to a local (a waste IMO) then uses them after. I'd just use the simple way, type coords into the opcode.

Link to comment
Share on other sites

@ james:

 

Yeah, I'm using this since I saw this way in a save script...

 

the WUZIBET script was improved by ZAZ ( he added the fading and the rendering )

 

 

Link to comment
Share on other sites

@ 12jango: That are very basic things to know when you want to code. I'll advise you to read some tutorials:

@ James: In an easy script, it is indeed possible that you don't use variables for these opcodes. But in more complex scripts, you can better use variables, because they are more organized than just the opcode. You can change them more easily. And, of course, you can use them more than once. That's why I prefer to use variables most of the times. However, you are absolutely right that in this script, he can use the number instead of variables, so that he won't waste a local. smile.gif Edited by Dutchy3010
Link to comment
Share on other sites

@ 12jango: That are very basic things to know when you want to code. I'll advise you to read some tutorials:

I believe he said he did read the tutorials, but couldn't find what he was looking for smile.gif

 

Still, opcode search would be helpful in future wink.gif

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
  • 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.