Teleporter not working

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Teleporter not working

Post 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!
Last edited by JimmyAngler on Tue Apr 08, 2014 4:12 pm, edited 2 times in total.
LRKfm946
Master Sergeant
Master Sergeant
Posts: 163
Joined: Sun Feb 02, 2014 6:13 pm
Projects :: Battlefront II Hunger Games
Games I'm Playing :: SWBF2 BF3
Contact:

Re: Teleporter not working

Post by LRKfm946 »

Did you put ScriptCB_DoFile("teleport") in the beginning of your lua?
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Teleporter not working [Solved]

Post by JimmyAngler »

Oh, I see. Thanks dude

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