Game Development Community

function CloneWithBehaviors() question?

by Man-Machine · in Torque Game Builder · 04/13/2009 (8:28 pm) · 1 replies

I'm trying to fix a bug in my script so I was wondering if this function is also supposed to clone dynamic fields. I understand that the with clone() function you have to set a flag. This function's documentation doesn't mention anything of this matter...

I need to clone an object with its behaviors and dynamic fields as well.

#1
08/12/2009 (2:11 pm)
cloneWithBehaviors and clone have the same syntax. Use cloneWithBehaviors(true) to copy dynamic fields.