GeorgNihilus Posted October 22, 2007 Share Posted October 22, 2007 Hi guys well now I'm having a pretty strange behaviour in some animations involving Mission Vao, I'm using these two simple scripts to unequip her right and left slot weapons or to equip her with a stun baton; all this in order to improve the animations within dialogs; pleading especially, I hate pleading animations with equipped arms!! Here are the scripts I'm using: // unequipmiss /* unequips Mission's right and left slot weapons */ void main() { object oParty = GetObjectByTag("Mission"); AssignCommand(oParty, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTWEAPON, oParty), TRUE)); AssignCommand(oParty, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, oParty), TRUE)); } ********************************************************* //give and equip Mission a stun baton for a dialog animation void main() { object oTarget=GetObjectByTag("Mission"); object oStun = CreateItemOnObject("g_w_stunbaton01",oTarget); AssignCommand(oTarget,ActionEquipItem(oStun,INVENTORY_SLOT_RIGHTWEAPON,TRUE)); } The specific problem is that Mission plays the dialog animation with the equipped weapon/s even AFTER the scripts have been executed ... BUT the scripts are working because -when the animation ends- if I change active player to Mission she is unequipped (or with the stun baton) ... So, what could this be?? thanks on advance ... Edit: Hmm ... after some tests I've realized that the error happens only when the dialog is started by the PC, if any other party member start the conversation with this NPC (a spawned twi'lek in Dantooine Jedi courtyard) the scripts work perfect ... that's it now ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.