Page 1 of 1

Stupid question about EntityParentNode()

Posted: Sun Sep 30, 2018 6:02 pm
by Psychophanta
From manual:
EntityParentNode()

Syntax

Result = EntityParentNode(#Entity)
Description

Returns the parent NodeID().
Parameters

#Entity The entity to use.

Return value

Returns the parent NodeID(), if any. This can be either a real node, or a bone if the entity is attached to a bone. If the entity has no parent node, it will returns 0.
However, just after creating any Entity, it never returns 0, even no parent node is attached.
Can explain please?

Re: Stupid question about EntityParentNode()

Posted: Sun Sep 30, 2018 7:09 pm
by Comtois
it's done internally. For an entity to be visible it must be attached to a scene node.