HasNode - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

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

Syntax[edit | edit source]

bool Function HasNode(string asNodeName) native

Parameters[edit | edit source]

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

Return Value[edit | edit source]

Whether this reference has the specified named node.

Examples[edit | edit source]

; 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 Also[edit | edit source]