HasNode - ObjectReference

Revision as of 18:04, 21 October 2011 by imported>Plplecuyer
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Checks to see if the reference has the specified named node in its 3D.

SyntaxEdit

bool Function HasNode(string asNodeName) native

ParametersEdit

  • asNodeName: The name of the 3D node to look for

Return ValueEdit

Whether this reference has the specified named node.

ExamplesEdit

; check to see if the person has a hand node
if person.HasNode("Hand")
  Debug.Trace("Person has a hand! Now do something with it...")
endIf

See AlsoEdit