Page 1 of 1

Lua code: disable ambush triggers?

Posted: Sat Jan 09, 2010 1:43 pm
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

Re: Lua code: disable ambush triggers?

Posted: Sat Jan 09, 2010 2:30 pm
by Fiodis
Sure. If it's a region, deactivate the region. You can reactivate it later. I depends on the trigger, really.

Re: Lua code: disable ambush triggers?

Posted: Sat Jan 09, 2010 3:47 pm
by YaNkFaN
DeactivateRegion("name of region")

the name of the region must be in quotes

Re: Lua code: disable ambush triggers?

Posted: Sun Jan 10, 2010 5:51 am
by [Skirata]Darman[M]
Thank you guys. That's really helpful. :D