PDA

View Full Version : scripting a teleport


shukrallah
10-11-2003, 03: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:



//(BHVD)
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!

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

shukrallah
10-13-2003, 11:27 AM
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.

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

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