Quantcast

Jump to content

» «
Photo

Step into yellow marker Then Teleport

3 replies to this topic
Cohex17
  • Cohex17

    TenebrisBurn Europe

  • Members
  • Joined: 29 Oct 2017
  • Bosnia-and-Herzegovina

#1

Posted A week ago

I want to make the script,if you step into yellow marker,you teleport to the interior or specifc coordinates!

So i want to make yellow marker spawn anywhere i want and if you step into it,it spawns you somewhere else!

 

IF YOU KNOW HOW SCRIPT GOES! PLS WRITE DOWN IN COMMENTS!


Lazlo_
  • Lazlo_

  • Members
  • Joined: 12 Mar 2012

#2

Posted A week ago Edited by Lazlo_, A week ago.

I don't know of any script, but you can make those ENEX (entry/exit) markers easy enough. I have tons of them. Its allowed me to add many save houses, hotel rooms, even some offices.

 

I cant lay into all the details right this second, but if you can find the documentation on ENEX, it should be easy enough without scripts, unless you need scripting for some reason.

 

I myself used the Coordinate tool in Sanny builder to locate my position in game, then looked up my IPL and wrote it into the ENEX section of the IPL. (You dont even actually need to change the IPL ENEX; you can make one just for your own ENEXs). I learned from a document somewhere on here.

 

Theres a few tricks, like knowing where to swap coordinates, and distinguishing teleporting from exterior to exterior or interior, and flags for things like vehicles.

 

I'll try to find the link in a few minutes.

 

 

I think this is the last one I made. If I recall, it takes you from the outside of the building adjacent to LibraryTower in LS to the roof.

 

1499.9054, -1371.7406, 13.0216, 0, 1.5, 1.5, 8, 1501.184, -1371.6782, 13.0184, 270, 0, 66, "DT3HELI", 0, 2, 0, 24
1483.7373, -1354.3544, 162.2187, 0, 1.5, 1.5, 8, 1484.1216, -1356.1086, 162.2187, 180, 0, 70, "DT3HELI", 0, 2, 0, 24   
 
Let me try to find that tut for you.    
 
I think this is the one that taught me:
 
 
with some help from
 
 
Hope this gets you started. It can be tricky at first learning how it works, so that you can have a many markers go to the same interior and yet remember where to send you back to, like when you have many entrances enexs to the same burgershot interior.
 
Also, I found it helped to place your landing about half a unit or so above your position. I dont remember why actually, I just remember thats what I usually do. Probably something to do with not appearing in the middle of the ground or something.
 
I'll check back then later. Someone else probably has a more clear explanation, Im just a bit rushed at the moment. Let us know how far you are and what is and isnt making sense to you.
 
Here you can see one I put behind the World of Coq after I spruced up a condo in the back. It takes me to the Prickle Pine Savehouse interior and back.
 
image.jpg
 
A wider view
 
image.jpg

Lazlo_
  • Lazlo_

  • Members
  • Joined: 12 Mar 2012

#3

Posted A week ago Edited by Lazlo_, A week ago.

Re-reading your OP, I see that you want an ENEX to appear at will to go anywhere else.

 

It may be possible, but I wouldn't know how. Someone might. The closest I can think of is the Teleport to Marker mod that you are probably already familiar with:

 

http://www.gtagarage...how.php?id=7483

 

 

There is also the San Andreas Place Manager, which is nice for getting into tight spots with more precision that aren't necessarily accessible with the first mod. For example, if you want to land on a fire escape in downtown LS to make an ENEX there but cant get to it because the collision file is blocking you. By using the Place Manager, you can estimate your landing until you get it, then map it with an enex.  Just as an example.

 

http://www.gtagarage.../show.php?id=26

 

I know these aren't exactly what you asked for, I'm just trying to get you as close as I can like many nice people here have done for me. Maybe theres something here you can develop or factor into what you hope for.

 

Good luck!  :santa: 


Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#4

Posted A week ago

I want to make the script,if you step into yellow marker,you teleport to the interior or specifc coordinates!

So i want to make yellow marker spawn anywhere i want and if you step into it,it spawns you somewhere else!

 

IF YOU KNOW HOW SCRIPT GOES! PLS WRITE DOWN IN COMMENTS!

keep help

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'nop'    /////this is cords saver
 
0ADF: add_dynamic_GXT_entry "STA80" text "CORDS_X ~1~.0 CORDS_Y ~1~.0 CORDS_Z ~1~.0 ANGLE ~1~.0 inter ~1~"  
while true
wait 0 
if 
   Player.Defined(0)
then
Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])
077E: get_active_interior_to [email protected]
[email protected] = Actor.Angle($PLAYER_ACTOR) 
0092: [email protected] = float [email protected] to_integer 
0092: [email protected] = float [email protected] to_integer 
0092: [email protected] = float [email protected] to_integer 
0092: [email protected] = float [email protected] to_integer 
0302: show_text_4numbers GXT 'STA80' numbers [email protected] [email protected] [email protected] [email protected] time 5 flag 1 
if 
0AB0:   key_pressed 54 /// prees 6
then 
wait 50 
0AF3: write_float [email protected] to_ini_file "CLEO\POZIT.INI" section "SAVE" key "LOC_X" 
0AF3: write_float [email protected] to_ini_file "CLEO\POZIT.INI" section "SAVE" key "LOC_Y" 
0AF3: write_float [email protected] to_ini_file "CLEO\POZIT.INI" section "SAVE" key "LOC_Z" 
0AF3: write_float [email protected] to_ini_file "CLEO\POZIT.INI" section "SAVE" key "ANGLE" 
0AF1: write_int [email protected] to_ini_file "CLEO\POZIT.INI" section "SAVE" key "INTER" 
03E5: show_text_box 'SAV' 
0ACD: show_text_highpriority "~Y~~H~save" time 500 
wait 1000 
end
end
end
end_thread

//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
////////////////////////////////////////////////////////////////////////////////////////////////
//info save first,
//coordination
//later, write down the coordination numbers from the ini file


//1 
//or                                    //icon 0~63    x   y   z the same
0570: [email protected] = create_asset_radar_marker_with_icon 36 at 0.0 0.0 0.0  //icon on radar and game
//or                                   x   y   z  the same
0A40: [email protected] = create_entrance_marker_at 0.0 0.0 0.0 color 14  //interior marker
//or                                 x   y the same  
08DC: create_interior_marker [email protected] at 0.0 0.0 radius 20.0 //interior marker


//2
//add in loop

wait 0
if                                             //x   y   z the same  x   y //meter in game
00EC:   actor $PLAYER_ACTOR sphere 0 near_point 0.0 0.0 0.0 radius 2.0 2.0 //hecking if player is on marker
then
//teleprort to interior -v- 
select_interior 0 //active interior
04FA: reset_sky_colors_with_fade 0 
057E: set_radar_grey 0 
0860: link_actor $PLAYER_ACTOR to_interior 0 //active interior
                              //x   y the same
04E4: refresh_game_renderer_at 0.0 0.0
                                //x   y   z the same
0972: put_actor $PLAYER_ACTOR at 0.0 0.0 0.0 no_offset 
wait 80
Actor.Angle($PLAYER_ACTOR) = 0.0 
Camera.SetBehindPlayer
Camera.Restore_WithJumpCut
end
//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users