Barriers in the LUA?

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
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Barriers in the LUA?

Post 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??
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Barriers in the LUA?

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Barriers in the LUA?

Post 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?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Barriers in the LUA?

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Barriers in the LUA?

Post by lucasfart »

ah well. i just came up with a way around that anyway that kills two birds with one stone :P of course, it'll take twice as long though.....
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Barriers in the LUA?

Post 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.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 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: Australia

Re: Barriers in the LUA?

Post 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
Post Reply