Page 1 of 1
Units die instantly
Posted: Sat Jan 02, 2010 5:19 pm
by genaral_mitch
I just made the first cp in my map, and when I spawn, the unit's die instanly. Their bodies don't even stay. The only thing that does is their ammo\health can. It's a space map, so it has a control region around the hangar but I double checked my .lua that cp1_control wasn't in deathregion.
Re: Units die instantly
Posted: Sat Jan 02, 2010 5:24 pm
by AceMastermind
You may want to refresh your brain by reading the documentation again.
Battlefront II Space LUA Guide wrote:>>SetWorldExtents and ScriptPreInit go hand in hand. When building a Space level, you may notice that when you exit your ship you instantly die. You also might find that running around certain parts of your ship you will die without taking damage. That’s what SetWorldExtents is for. If you have this set to 2500, but you’re still finding that the world is killing you (and you’re not walking into a death region) then bump it up to enlarge the soldier based playable space.
function ScriptPreInit()
SetWorldExtents(2500)
end
Re: Units die instantly
Posted: Sat Jan 02, 2010 5:43 pm
by genaral_mitch
I change it by a few thousand, no change. i change it to 25000, it crashes.
Re: Units die instantly
Posted: Sat Jan 02, 2010 7:59 pm
by Eggman
From my experiments with SetWorldExtents, the highest it could go was something like 19000.
Re: Units die instantly
Posted: Sat Jan 02, 2010 10:11 pm
by Fiodis
And if
that high a number doesn't work, post the debug log.
Ah, the thread title brings to mind so many BFME modding memories....
