Jump to content

Home

Force Power Problem


harIII

Recommended Posts

I'm trying to make a new force power similar to the Beast Control of K2 in K1. I want to be able to use the power and then game play switches to the target. You now control the target whether its a creature or a person. You'll be able to walk around and use that creature to attack other creatures.

 

I have everything working except for the script:

 

void main() {

ChangeToStandardFaction(GetSpellTargetObject(), 1);

}

 

I know that the new faction isn't correct, its set on hostile; I was experimenting seeing if it makes the creature turn against you but it didn't do anything. Is this script even correct?

Link to comment
Share on other sites

Unless I'm missing something, that line looks fine to me. Is the creature aware of your presence when it turns hostile? If not, you may need to give it a kick to start fighting with the following line of code: ExecuteScript( "k_ai_master", GetSpellTargetObject(), 1005 );

 

- Star Admiral

Link to comment
Share on other sites

Right now I'm just experimenting with it making it hostile, but eventually I want to be able to manipulate the creature similar how the PC could play as the Droid on Telos of K2 but for K1. Is there a script that I could tell it to initiate that?

 

Also I'll try this for now and see what happens.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...