Barriers in the LUA?
Moderator: Moderators
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Barriers in the LUA?
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??
-
mswf
- Master Bounty Hunter

- Posts: 1674
- Joined: Tue Mar 31, 2009 3:40 pm
- Location: Twello, The Netherlands
- Contact:
Re: Barriers in the LUA?
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.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Barriers in the LUA?
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?
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?
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Barriers in the LUA?
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.
The height cannot be changed.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Barriers in the LUA?
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.....
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Barriers in the LUA?
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.FragMe! wrote:You can add and remove barriers dynamically via scripting...
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Barriers in the LUA?
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
