Page 1 of 1

How are the properties of regions defined?

Posted: Thu Jun 08, 2006 12:28 pm
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

RE: How are the properties of regions defined?

Posted: Fri Jun 09, 2006 2:27 am
by OGEB1103
Errr so anybody know anything about this. I'm guessing by the lack of posts that people truthfully have no idea.

RE: How are the properties of regions defined?

Posted: Fri Jun 09, 2006 2:38 am
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.

RE: How are the properties of regions defined?

Posted: Fri Jun 09, 2006 2:48 am
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:

Posted: Fri Jun 09, 2006 7:37 am
by Gunjak
what kind of region are you trying to recreate,

Posted: Fri Jun 09, 2006 12:20 pm
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.

Posted: Fri Jun 09, 2006 1:38 pm
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?

Posted: Fri Jun 09, 2006 2:10 pm
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.