TomsRocc Posted January 10, 2010 Share Posted January 10, 2010 I need help again. I need to make the pc perform a (fake) Droid Destroy action and then make the droid die. What confuses me is the // 501: The action subject will fake casting a spell at oTarget; the conjure and cast. The problem is that i don't know how to set the "action subject", since i want the script to be fired from a dialog. Link to comment Share on other sites More sharing options...
stoffe Posted January 11, 2010 Share Posted January 11, 2010 The problem is that i don't know how to set the "action subject", since i want the script to be fired from a dialog. You can use the AssignCommand() function for that. For example: void main() { object oDroid = GetObjectByTag("TheVictimsTag"); object oJedi = GetObjectByTag("TheJedisTag"); AssignCommand(oJedi, ActionCastFakeSpellAtObject(FORCE_POWER_DROID_DESTROY, oDroid)); } Keep in mind that the Fake Cast action does not trigger the impact script of the power, it would just go through the animations for using it. So if you want the lightning beam to appear between the Jedi and the Droid you'll have to apply that in your script as well, since that effect is part of the impact script. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.