How are the properties of regions defined?

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
OGEB1103

How are the properties of regions defined?

Post by OGEB1103 »

Basically im wondering where it states what a region does, is it somehow hard-wired into the game engine itself or is there a lua or odf file somewhere that does it. I know you can change what type a region is, such as death and landing, but i really would like to know if i can somehow change these or even create my own. Help would be very much apreciated.
OGEB1103
OGEB1103

RE: How are the properties of regions defined?

Post by OGEB1103 »

Errr so anybody know anything about this. I'm guessing by the lack of posts that people truthfully have no idea.
xwingguy

RE: How are the properties of regions defined?

Post by xwingguy »

it's hard-wired into the game's interpreter, nevertheless you can still do some crazy things. Try doing this:

OnEnterRegionName() <-- you can do pretty much anything with that. (Note: Name means you must specify the region's name in the second parameter.)

I don't know what you're trying so I don't know if it helps or not.
OGEB1103

RE: How are the properties of regions defined?

Post by OGEB1103 »

Ah, i had a feeling it wasn't that easy. I know that that line is scripting but what can u actually do with those because when i look in the tutorial it seems to be limited to what you actually can do. Never-the-less ill take a more thourough look at these, thanks for trying xwing' :wink:
Gunjak

Post by Gunjak »

what kind of region are you trying to recreate,
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

Yes, what do you want to make? Lua is a programming language. Inside the OnEnterRegion() function, you can do almost anything: create objects, move objects, play sounds, damage things, disable weapons, slow units down, give health, give ammo, get a user's name, take health away, become an enemy, print a message, create a file, do nothing, track something, change something, etc... Almost whatever you can think of.
Squirrel7Hunter

Post by Squirrel7Hunter »

hmm. anything, wow, someone told me i didnt have to do anything to the LUA to add a rumble region but i added one and nothing happened, I did change the class peramater, or what ever its called to rumble. Is there anything else?
xwingguy

Post by xwingguy »

Squirrel7Hunter wrote:hmm. anything, wow, someone told me i didnt have to do anything to the LUA to add a rumble region but i added one and nothing happened, I did change the class peramater, or what ever its called to rumble. Is there anything else?
I can't figure this out either. You apparently need an odf to go with it. I don't have a clue though on how to make it work.
Post Reply