Topic: Clone function
Hey! How do you make clones inside the game now? From what I understand you can getClone and make a list of them, but how do you put them in game?
You are not logged in. Please login or register.
Hey! How do you make clones inside the game now? From what I understand you can getClone and make a list of them, but how do you put them in game?
getClone automatically add the clone to the scene, you might not see it as it creates at the same position as the source.
try :
ObjectToClone = getObject("MyObject")
Clone = getClone(ObjectToClone)
translate(Clone, vec3(10, 0, 0)) -- move the clone to see it
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.