Page 1 of 1
Barriers in the LUA?
Posted: Fri Aug 07, 2009 8:39 pm
by lucasfart
i read somewhere once how you add barriers in the lua and i have looked both in the faq and in the serach and cannot seem to find it. could someone give me the code i need to add to my lua or wherever it is i add it??
Re: Barriers in the LUA?
Posted: Fri Aug 07, 2009 8:44 pm
by mswf
If you mean the barriers that keep the AI from running into walls, it's not necessary (I don't think it's even usefull). All you have to do is ad them in zeroeditor.
Re: Barriers in the LUA?
Posted: Fri Aug 07, 2009 8:47 pm
by lucasfart
really??no wonder i couldn't find anything on barriers lol. thanks for that.
EDIT: i was also wondering if you could edit the height of a barrier using coding of some sort. i know barriers are meant to go on forever, but i was just wondering if it was possible to change that?
Re: Barriers in the LUA?
Posted: Fri Aug 07, 2009 8:58 pm
by FragMe!
You can add and remove barriers dynamically via scripting, case in point the Death Star adds them when the bridges get retracted and removed when they are fixed.
The height cannot be changed.
Re: Barriers in the LUA?
Posted: Fri Aug 07, 2009 9:12 pm
by lucasfart
ah well. i just came up with a way around that anyway that kills two birds with one stone

of course, it'll take twice as long though.....
Re: Barriers in the LUA?
Posted: Sat Aug 08, 2009 12:21 am
by Frisbeetarian
FragMe! wrote:You can add and remove barriers dynamically via scripting...
This is only removing and adding back in barriers that have been set up in ZE already. You cannot create a barrier with Lua scripting.
Re: Barriers in the LUA?
Posted: Sat Aug 08, 2009 5:03 am
by lucasfart
i knew you had to add them in ZE but i thought they might need a bit of scripting, a bit like deathregions and boundaries but it seems not...thanks for all your help guys