GSC reference › Built-in

ChangeFontScaleOverTime()

Built-in (engine) Server UI Called on: hud_element

Set a hud element to transition in fontScale over time. Normally setting the fontScale of an element causes an immediate visual change. However, if the fontScale gets set within <time> after calling ChangeFontScaleOverTime, then the hud element will transition to the new fontScale over the remaining <time>.

Signature

<hud_element> ChangeFontScaleOverTime(<time>)

Called on an entity: hud_element ChangeFontScaleOverTime(...)

Parameters

NameRequired?Details
timeRequired The time to scale the element font in seconds

Example (from Treyarch's docs)

level.introstring1 ChangeFontScaleOverTime( 1.2 ); level.introstring1.fontScale = 0.3; // This will transition the fontScale from whatever it was before to the new value of 0.3 over 1.2 seconds.

Real uses in BO3's scripts

Called 8 times in the decompiled scripts. A few, zombies first:

Related built-ins

New to GSC?

Start with the basics, or paste a compile error to get the fix.

Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).