Units die instantly

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
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Units die instantly

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Units die instantly

Post 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
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: Units die instantly

Post by genaral_mitch »

I change it by a few thousand, no change. i change it to 25000, it crashes.
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Units die instantly

Post by Eggman »

From my experiments with SetWorldExtents, the highest it could go was something like 19000.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Units die instantly

Post 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.... :)
Post Reply