Cloned paths have no nodes
by Patrick Shaw · in Torque Game Builder · 03/30/2008 (7:23 am) · 0 replies
(tgb 1.7.3)
Using cloneWithBehaviors on a path does not copy the source path's nodes. Temporary workaround is to manually copy the nodes in script:
Using cloneWithBehaviors on a path does not copy the source path's nodes. Temporary workaround is to manually copy the nodes in script:
%clone= %path.cloneWithBehaviors();
for (%i = 0; %i < %path.getNodeCount(); %i++)
%clone.addnode(%path.getnode(%i));About the author