Lua code: disable ambush triggers?

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
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Lua code: disable ambush triggers?

Post by [Skirata]Darman[M] »

Hey guys, for everyone how read my last topic: I finally got a normal B2droid again.
(after replacing nearly the whole side and many manual cleans)

This is just a short question.
Is it possible to dis-setup an ambushtrigger after setting it up? Probably something like killing the region or disallow spawn for the Ambushteam?
I found nothing like this in the asset-scripts. Would be nice if someone can help me. :D
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Lua code: disable ambush triggers?

Post by Fiodis »

Sure. If it's a region, deactivate the region. You can reactivate it later. I depends on the trigger, really.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: Lua code: disable ambush triggers?

Post by YaNkFaN »

DeactivateRegion("name of region")

the name of the region must be in quotes
User avatar
[Skirata]Darman[M]
Rebel Sergeant
Rebel Sergeant
Posts: 190
Joined: Mon Aug 10, 2009 8:47 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Imperial Center, Coruscant
Contact:

Re: Lua code: disable ambush triggers?

Post by [Skirata]Darman[M] »

Thank you guys. That's really helpful. :D
Post Reply