SetEntityAttribute and #PB_Entity_InheritScale

Everything related to 3D programming
PeDe
Enthusiast
Enthusiast
Posts: 355
Joined: Sun Nov 26, 2017 3:13 pm

SetEntityAttribute and #PB_Entity_InheritScale

Post 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
miso
Enthusiast
Enthusiast
Posts: 712
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: SetEntityAttribute and #PB_Entity_InheritScale

Post 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.
Post Reply