Talk:GetHeight - ActorBase

From the CreationKit Wiki
Revision as of 01:52, 9 February 2015 by imported>Darkconsole (Created page with "== GetScale, SetScale == Interesting little tidbit I noticed with these functions, which made sense only after looking at the console version of this method. When you SetScal...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GetScale, SetScale

Interesting little tidbit I noticed with these functions, which made sense only after looking at the console version of this method. When you SetScale(1.0) you may not get 1.0 back from GetScale(). It seems on actors the ActorBase height multiplier is getting used in SetScale(), with GetScale() thusly returning the modified value instead of what you set.

I was really confused over some behaviours all night, and it turned out to when I did scale = actor.GetScale() * actor.GetHeight() for the purpose of my maths, all was well.

--Darkconsole (talk) 2015-02-09T01:52:57 (EST)