From my previous post #172:
I hold a bow in my hands, tried with just a sword as well. in all case I get -1
Why would I get -1 for the GetBoundingRadius:
set Weapon to Player.GetEquippedObject 16 if (weapon) set Weapon to Player.GetEquippedObject 16 set weapon to aadpCellaadphidcellwc.placeatme weapon if isformvalid weapon == 1 set WeaponSize to weapon.GetBoundingRadius messagebox"radius is %.2f"weaponsize endif endif
-------------- end of cut and past of post 172--------------
So why is it working for you and not working fo me? Why am I getting -1 for all the weapons I try this on?
Is this becasue I am not wating "the next frame"? So I need to place my object then wait a frame THEN use weapon.GetBoundingRadius ?
One way around is to get the base object FormID of the weapon or shield and PlaceAtMe a new object in the game world, get its dimensions with GetBoundingBox and, then, remove it with DeleteReference.
Problem is that, for PlaceAtMe'd references, GetBoundingBox will only return the real dimension the next frame.
Problem is that, for PlaceAtMe'd references, GetBoundingBox will only return the real dimension the next frame.