Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Question if I clone a scene node how do I tell the newly cloned object to enable patrol "mode". I have been debugging the object in the console and I don't see a way to trigger the models "patrol" mode option. I can find the animations etc.. although I am not seeing the mesh modes. Please let me know thanks in advance. I really enjoy working with CopperCube / CopperLicht Example:
|
||||
|
Try clone.AIType = 2; there is a reason this is not documented. :) |
||||
|
If I run that in Canary Chrome I currently receive -> RangeError: Maximum call stack size exceeded. This is with Copperlicht 1.3.2. I have tried to reduce the number for example to 2 or 5 but it only makes one clone. Sometimes it will execute the "patrol" although it still doesn't seem to attack. Your help is greatly appreciated in this matter. Thanks |
||||
|
Seems to work better on the webkit nightly build on osX. Googles Canary seems to have a possible bug one is on OSX and the other is running on Windows 7. Thanks for the reply that is helping |
||||
|
Maybe it also helps to set the variables to values like these: clone.PatrolRadius = 1000 clone.StartPositionOfActor = InitialPositionOfYourActor |
||||
|
I have started to play around with the clone object I have set the PatrolRadius. I can see the characters after they are dynamically created. I have animations for this character hit, attack, stand, walk, etc.. I am just trying to create an array of enemy tag types and assign them the same properties I have currently set in CopperCube. By the way the binary compilation of the models is brilliant. This library runs quickly easily enables multiple scenes and is easy to use. I did submit a request for and indy license would really enjoy using it to its fullest capabilities thanks in advance.
|
|