GSC reference › Built-in

SetControllerUIModelValue()

Built-in (engine) Server Player Called on: player

Sets a data value for a given lui menu, the data name has to be precached and the value as well, if its a string.

Signature

<player> SetControllerUIModelValue(<ui model data path from controller>, <ui model value>)

Called on an entity: player SetControllerUIModelValue(...)

Parameters

NameRequired?Details
ui model data path from controllerRequired precached name string for the data which we're trying to set.
ui model valueRequired value for the data which we're trying to set on the controller.

Example (from Treyarch's docs)

player SetControllerUIModelValue( "hudItems.regenDelayProgress", 0.2 )

Real uses in BO3's scripts

Called 24 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).