luthienanarion Posted July 6, 2012 Share Posted July 6, 2012 (edited) Just add a ref variable and set it to GetSelf and then use RefVariable.Additem etc. scn infectammoblack ref self Begin ScriptEffectStart set self to getself self.AddItem wereb2 1 1 self.AddItem wereh2 1 1 self.EquipItem wereb2 1 1 self.EquipItem wereh2 1 1 End Keep in mind that the second argument passed to the EquipItem command is a boolean flag that determines if the item can be unequipped. If you pass a 1, the actor cannot unequip the item by any means other than the UnequipItem command. If you want to be able to take the armor on and off normally, pass a 0 instead: self.equipitem wereb2 0 1 More info here: EquipItem Edit: Grammar are hard. Edited July 6, 2012 by luthienanarion Link to comment Share on other sites More sharing options...
orangedemi Posted July 6, 2012 Author Share Posted July 6, 2012 ah figured the first one in the equip commnd locked it, but i didnt know self meant anyone, i thought it was just refencing the player. but it seems self can either mean the player (when using the stim) or the actor (that gets hit).if thats it that i think i got it ^^ thanks! now i just need to see if i can find a way to play animation after its equiped Link to comment Share on other sites More sharing options...
Recommended Posts