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.
Two Questions [Answered]
Moderator: Moderators
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Two Questions [Answered]
Last edited by thelegend on Wed Jun 03, 2015 3:07 pm, edited 1 time in total.
- Anakin
- 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
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.
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: Two Questions
For the first thing try something like this:
Of course it has to be a destructible entity for lua to kill it.
Code: Select all
OnCharacterSpawn(
function(character)
if IsCharacterHuman(character) then
KillObject("buildings")
end
end
)-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Two Questions [Answered]
Thank you both. Got everything working fine 
