Documentation / Node reference / code nodes

code/SetObjectAttribute

Sets an object attribute when triggered.

Actions

Sets an attribute of the object when its trigger fires. On float, vector and colour types, lerp below 1 moves it only part of the way.

Parameters

Name Type What it does
name AttributeName Attribute to set.
type UInt8 BASE_NODE_HANDLE · BOOL · COLOR · COLOR4 · FLOAT · FLOAT64 · MATERIAL_HANDLE · NETWORK_PANEL_SCENE_OBJECT_CONFIG · S8 · S32 · STRING · U8 · U32 · VECTOR2 · VECTOR2_64 · VECTOR2UINT · VECTOR3 · VECTOR3_64 · VECTOR3UINT · VECTOR4 Type of the attribute.
value_Bool Bool Value to set.
value_Float Float Value to set.
value_SInt8 SInt8 Value to set.
value_SInt32 SInt32 Value to set.
value_UInt8 UInt8 Value to set.
value_UInt32 UInt32 Value to set.
value_Vector2 Vector2 Value to set.
value_Vector2UInt Vector2UInt Value to set.
value_Vector3 Vector3 Value to set.
value_Vector3UInt Vector3UInt Value to set.
value_Vector4 Vector4 Value to set.
lerp Float Fraction of the way to go. 1 jumps there.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.