Why is this weapon not unequiping?
DJ_WoW
Member Posts: 51
object oKiller = GetLastKiller();
object oWeapon = GetLastWeaponUsed(oKiller);
AssignCommand(oKiller, ActionUnequipItem(oWeapon));
Sure I am missing something simple.
Thank you for your time,
DJ-WoW
object oWeapon = GetLastWeaponUsed(oKiller);
AssignCommand(oKiller, ActionUnequipItem(oWeapon));
Sure I am missing something simple.
Thank you for your time,
DJ-WoW
0
Comments
I haven't verified this, but, ordinarily, functions defined for specific events generally don't work in other events.
If your script is for the OnDeath event, you could use GetItemInSlot to identify oWeapon, as it isn't event-specific.