Freedom Reborn Archive

Freedom Force Forums => Scripting Forum => Topic started by: bearded on December 07, 2008, 12:07:13 AM

Title: make into villian
Post by: bearded on December 07, 2008, 12:07:13 AM
as we all know you can easily make into hero.
here's my workaround for make into villian.
spawn a tiggot for each hero less than 4, then spawn a clone of the hero you want villianized.  this leaves a blank ai character you can custom ai to do what you want.  like target the other heroes.  delete all the tiggots and the original hero.
seems like there must be an easier way to do this however.  how does the clone ray work?  shouldn't there be a way to clone a hero and deleting the original?
Title: Re: make into villian
Post by: GogglesPizanno on December 07, 2008, 01:03:08 AM
You might try:

AI_DestroyHeroAI(hero)

It will convert a Hero into a Minion.
Though Im not sure if it affects characters on a players squad in the same way it affects non-controlled characters.
Title: Re: make into villian
Post by: bearded on December 07, 2008, 02:14:03 AM
bingo!  thank you, that's the command i was looking for.