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

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

How to teleport to other location with flyer?

Postby Ginev » Mon Apr 17, 2017 5:37 am

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?

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 1 guest