View Full Version : scripting a teleport

10-11-2003, 04:19 PM
ok, i know how to make a normal teleport. But i want to know how to make one with a script. You see, i want to make an NPC teleport to another area of the map... heres the script i made:

rem ( "teleports galak" );

affect ( "galaktele", /*@AFFECT_TYPE*/ FLUSH )

task ( "teleport" )
set ( /*@SET_TYPES*/ "SET_TELEPORT_DEST", "tele" );

do ( "teleport" );

The script runs, but galak just turns invisable... i put a ref_tag in and gave it a targetname of "tele" (tele is short for teleport)

anyways, can i get a little help please? Thanks!

10-11-2003, 04:43 PM
Just use the "use" command for a target_activate in the map, which directs to a trigger_teleport under Galak's feet.

10-13-2003, 12:27 PM
But wouldnt that make that "beam" affect? Ive done it in multiplayer where you walk into the trigger teleport and then theres a beam...

oh well. Ill just have to put up with it.

10-13-2003, 01:18 PM
Only in MP - where scripting is impossibl;e. Don't worry. :)

10-13-2003, 07:19 PM
Kool! Well, its a SP map.. so its all good.