Units die instantly
Moderator: Moderators
-
genaral_mitch
- Jedi

- Posts: 1056
- Joined: Fri Aug 14, 2009 12:32 am
Units die instantly
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.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Units die instantly
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
-
genaral_mitch
- Jedi

- Posts: 1056
- Joined: Fri Aug 14, 2009 12:32 am
Re: Units die instantly
I change it by a few thousand, no change. i change it to 25000, it crashes.
- Eggman
- Master Bounty Hunter

- Posts: 1516
- Joined: Mon Jul 16, 2007 1:30 pm
- Projects :: Battlefront Chronicles
- Location: Las Vegas
Re: Units die instantly
From my experiments with SetWorldExtents, the highest it could go was something like 19000.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Units die instantly
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....
Ah, the thread title brings to mind so many BFME modding memories....
