Bridge destroyed ---> Turrets destroyed....?

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
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Bridge destroyed ---> Turrets destroyed....?

Post by Aman/Pinguin »

Hey ho,
Just a little question for my spacemap:
What do i have to add to the lua, to config that if the bridge of the CIS Mainship is destroyed, the turrets on the top of the bridge become destroyed, too?


ps.: Sorry if the sentence is confuse my english isn't that great... :wink:
Falco

Re: Bridge destroyed ---> Turrets destroyed....?

Post by Falco »

i dont know but i think this should work:

function SetupDestroyables()
--CIS destroyables
BridgeLinkageCIS = LinkedDestroyables:New{ objectSets = {{"NAME-FROM-YOUR-BRIDGE"}, {"NAME-FROM-YOUR-TURRET"}, {"NAME-FROM-YOUR-TURRET2"},{"NAME-FROM-YOUR-TURRET3"}} } BridgeLinkageCIS:Init()
Post Reply