A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »teleporting

Author Topic: teleporting (3 messages, Page 1 of 1)
Moderators: Dennis

sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Dec 30, 2008 08:39 PM    Msg. 1 of 3       
can someone tell me the script for the player to teleport once i step in a trigger volume in a single player map? i really need the script


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Dec 30, 2008 09:20 PM    Msg. 2 of 3       
In Sapien, go down to "Game Data" and under it you should see "cutscene flags". Place them where you want the player to teleport to, and give them each a unique name. Then, in a script, use this command when the player steps into the trigger volume:

(object_teleport "object" "cutscene_flag")

For "object", we use this reference to refer to the player:

(list_get (players) 0)

So if my flag was named "away", this is what my command would look like:

(object_teleport (list_get (players) 0) away)

Which would teleport the player to the flag "away".

If you need a full script, here it is:


(script startup teleport
(sleep_until (volume_test_objects "trigger_volume" (players)) 1)
(object_teleport (list_get (players) 0) "cutscene_flag")
)


"trigger_volume" is the name of the volume you want to use to teleport the player to that "cutscene_flag".


sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Dec 31, 2008 06:56 PM    Msg. 3 of 3       
thank you =)

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 2:01 AM 141 ms.
A Halo Maps Website