Difference between revisions of "Talk:GetScale - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
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...")
 
imported>Darkconsole
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== GetScale, SetScale ==
== Scale Issues ==


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.
Sorry, I have been back and forth chasing this down. I think I have finally identified what is happening. Pull up the console, find an Elk or a Dear or a Fox or something, click it and do GetScale. You will get something like this: GetScale => 1.0 (with base 0.75)


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.
SetScale will set the actual final result (and the wording on the documentation subtlety says that)
GetScale will return the base scale (and the wording on that even more subtle)


--[[User:Darkconsole|Darkconsole]] ([[User talk:Darkconsole|talk]]) 2015-02-09T01:52:57 (EST)
I have identified it is NOT a ActorBase.GetHeight() multiplier issue, because GetHeight is returning 1.0 on all the things, rendering (Actor.GetScale() * Actor.GetActorBase().GetHeight()) moot.
 
[http://i.imgur.com/mGA2dv6.jpg Screenshot With Scribbles.]
--[[User:Darkconsole|Darkconsole]] ([[User talk:Darkconsole|talk]]) 2015-02-23T20:28:07 (EST)

Latest revision as of 20:28, 23 February 2015

Scale Issues[edit source]

Sorry, I have been back and forth chasing this down. I think I have finally identified what is happening. Pull up the console, find an Elk or a Dear or a Fox or something, click it and do GetScale. You will get something like this: GetScale => 1.0 (with base 0.75)

SetScale will set the actual final result (and the wording on the documentation subtlety says that) GetScale will return the base scale (and the wording on that even more subtle)

I have identified it is NOT a ActorBase.GetHeight() multiplier issue, because GetHeight is returning 1.0 on all the things, rendering (Actor.GetScale() * Actor.GetActorBase().GetHeight()) moot.

Screenshot With Scribbles. --Darkconsole (talk) 2015-02-23T20:28:07 (EST)