Two Questions [Answered]

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
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Two Questions [Answered]

Post by thelegend »

Hey guys,
I still have two questions which would make me feel better if I got both things working.
1. Is it possible to let buildings be destroyed when the game starts. For example some skyscrapers would explode since the player first spawns (or even before the player selected for a team).

2. On Sniper Hint Nodes there are sometimes up to 3-4 snipers in one node. I would like to decrease the amount of snipers (or other things like mines). I know someone already asked this here but I don't seem to find that topic again..

Thanks in advance.
Last edited by thelegend on Wed Jun 03, 2015 3:07 pm, edited 1 time in total.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Two Questions

Post by Anakin »

you can set the health points of objects via lua. look at the stock scripts it's done a couple of times for turrets. About 2 It is not possible to reduce the number of snipers per node. you can only add more nodes so that the snipers spread, or you reduce the number of sniper that can spawn at once.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Two Questions

Post by AnthonyBF2 »

For the first thing try something like this:

Code: Select all

OnCharacterSpawn(
function(character)
if IsCharacterHuman(character) then
KillObject("buildings")
end
end
)
Of course it has to be a destructible entity for lua to kill it.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Two Questions [Answered]

Post by thelegend »

Thank you both. Got everything working fine :)
Post Reply