Stupid question about EntityParentNode()

Everything related to 3D programming
User avatar
Psychophanta
Addict
Addict
Posts: 4997
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Stupid question about EntityParentNode()

Post 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?
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
User avatar
Comtois
Addict
Addict
Posts: 1429
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: Stupid question about EntityParentNode()

Post by Comtois »

it's done internally. For an entity to be visible it must be attached to a scene node.
Please correct my english
http://purebasic.developpez.com/
Post Reply