Hero health? [Solved]
Moderator: Moderators
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Hero health? [Solved]
How would i make heros not lose health or gain health by killing units also how would i make units get health by killing units. I would think it would be in the lua but idk.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: hero health?
99% sure the hero bar is hard-coded. If you want the hero to not lose "hero health", make them a selectable unit and set minimum to 0, max to 1.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: hero health?
Oh ok thx
-
myers73
- Lieutenant General

- Posts: 690
- Joined: Fri Apr 03, 2009 11:04 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Atlanta, GA xfire=myers73 IngameName=mYers
Re: Hero health? [Solved]
you could also write some code so that they arent added to the team until the player gets a certain number of points.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: hero health?
how would i make it if i want to be a hero and there is already that hero in the game that that hero will die so i can be the hero?Teancum wrote:99% sure the hero bar is hard-coded. If you want the hero to not lose "hero health", make them a selectable unit and set minimum to 0, max to 1.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Hero health? [Solved]
You can't.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Hero health? [Solved]
Oh ok the reson i asked was that i thought it was in skys dark space map pack.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Hero health? [Solved]
Maybe - I don't know how you would kill someone else off and make sure that you get the hero. The hero unlock system is all hard coded.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Hero health? [Solved]
I thought I had some early success using Fake Console commands to give the hero unending life (through some health regen?) a long, long while ago. It may have just been wishful thinking, though, as I tried the same thing recently and had it pseudofail.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Hero health? [Solved]
Archer01's hero support script is what you're thinking about skelltor. It allows the ai to use the hero, but when the player spawns as it, the ai hero is killed....
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Hero health? [Solved]
yah thanks i did not know if sky edited the script or not.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Hero health? [Solved]
Ah, I misunderstood. I thought you meant kill a human to take over.
-
RevanSithLord
- Sith Master

- Posts: 2636
- Joined: Mon Nov 07, 2005 12:40 am
- Projects :: Designated Days + LFC + GT vs SWBFC
- xbox live or psn: Master Revan
- Location: GDSS Philadelphia
Re: Hero health? [Solved]
Lol. That would be pretty mean, though.Teancum wrote:Ah, I misunderstood. I thought you meant kill a human to take over.
I had a hard time understanding the dude myself, actually. I was about to try and help out with what limited knowledge I have, but since the topic is solved, my post is essentially useless.
