Page 1 of 1

SetEntityAttribute and #PB_Entity_InheritScale

Posted: Thu Feb 12, 2026 7:42 pm
by PeDe
PBv6.30 arm64, Raspberry Pi OS (Debian 13)

When I insert the function ‘SetEntityAttribute(...)’ in the PB example ‘examples/3d/Entity.pb’, the attribute ‘#PB_Entity_InheritScale’ is not listed by autocomplete. The syntax check is successful, but there is an error when executing: [ERROR] SetEntityAttribute(): invalid value specified for parameter ‘Attribute’.
The attribute is described in the help section and was added in version 6.20.

User error or PB error?

Peter

Code: Select all

Line 38:
CreateEntity(0, MeshID(0), MaterialID(0))
SetEntityAttribute(0, #PB_Entity_InheritScale, #True) ; ERROR

Re: SetEntityAttribute and #PB_Entity_InheritScale

Posted: Thu Feb 12, 2026 7:58 pm
by miso
I think inheritscale will be interesting when you attach an entity to an other scaled entity or bone, and might not yet be implemented.