Page 1 of 1

Teleporter not working

Posted: Tue Apr 08, 2014 2:10 pm
by JimmyAngler
I have a teleporter and named it Region1. I have a path and named it TeleportNode. The Node is named Node0. In my Lua I have
Hidden/Spoiler:
--A single teleport
local region = GetRegionLocation( "Region1" )
local destination = GetPathNodeDestination( "TeleportNode", 0 )
SetupEnterRegionTeleport( region, destination, 0, 0 )
ActivateRegion( "Region1" )
I have in the mission.req
Hidden/Spoiler:
REQN
{
"script"
"setup_teams"
"gametype_conquest"
"gametype_capture"
"Objective"
"MultiObjectiveContainer"
"ObjectiveCTF"
"ObjectiveAssault"
"ObjectiveSpaceAssault"
"ObjectiveConquest"
"ObjectiveTDM"
"ObjectiveOneFlagCTF"
"SoundEvent_ctf"
"ObjectiveGoto"
"LinkedShields"
"LinkedDestroyables"
"LinkedTurrets"
"Ambush"
"teleport"
"PlayMovieWithTransition"
}
And of course, the teleport lua is in the correct place too.
After all this, the teleport doesn't work. ARGH!

Re: Teleporter not working

Posted: Tue Apr 08, 2014 2:25 pm
by LRKfm946
Did you put ScriptCB_DoFile("teleport") in the beginning of your lua?

Re: Teleporter not working [Solved]

Posted: Tue Apr 08, 2014 3:21 pm
by JimmyAngler
Oh, I see. Thanks dude

Edit, Last question, How would I add an extra teleporter?