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
How are the properties of regions defined?
Moderator: Moderators
-
OGEB1103
RE: How are the properties of regions defined?
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?
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.
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?
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' 
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
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
-
xwingguy
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.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?
