How to teleport to other location with flyer?

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
User avatar
Ginev
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Thu Apr 02, 2009 7:02 am
Projects :: Remaking FR Battlefront 3 Tatooine map.
Games I'm Playing :: nothing for now
xbox live or psn: No gamertag set
Location: Bulgaria

How to teleport to other location with flyer?

Post by Ginev »

I tryed one tutorial that is showing how to teleport my soldier to other location (path node name) however its not working when i try to teleport myself while pilothing a flying vehicle.If someone know how to do it please tell me.

This is the code i am using for the teleport in my lua.

--A single teleport
local region = GetRegionLocation( "region0" )
local destination = GetPathNodeDestination( "cp4_spawn", 0 )
SetupEnterRegionTeleport( region, destination, 0, 0 )
ActivateRegion( "region0" )

How to make it so i can teleport while flying vehicle?
Post Reply