BuggerBurger Posted August 20, 2015 Share Posted August 20, 2015 (edited) I made a script that is supposed to set the base damage of a weapon the script is attached to, but it isn't setting the base damage. The script type is ObjectReference debug.Notification("Damage set to " + TotalDamage) debug.MessageBox(((self as Form) as Weapon).GetSpeed()) ((self as Form) as Weapon).SetBaseDamage(math.floor(TotalDamage) as Int) ((self as Form) as Weapon).SetCritDamage(math.floor(TotalDamage * SneakMod) as Int) ((self as Form) as Weapon) is returning None, I'm looking for the proper way to grab self as a weapon and setting the base damage of it to a desired value Edited August 20, 2015 by BuggerBurger Link to comment Share on other sites More sharing options...
lofgren Posted August 20, 2015 Share Posted August 20, 2015 GetBaseObject() Note that this will only work if the object is persistent or is outside an inventory. For a non-persistent item inside an inventory, there is no way to find the base object. Link to comment Share on other sites More sharing options...
Recommended Posts