Code: Select all
target=sim.getObjectAssociatedWithScript(sim.handle_self) path=sim.getObjectHandle('Path1') for i=1, 1 do sim.followPath(target,path,1,0,0.2,0.5) end
However, only the first quadricopter follows his path while the second one just stay on site. I guess that it is a consecuence of the #0 suffix that appears in the name of the second quadricopter. I tried to modify the code of the child script while renaming the quadricopter#0 files but, despite of the quadricopter#0 starts moving, it doesn't follow its path.
Thanks in advance