Ok, im trying to spawn a particle at a child objects cords....but the parent object is moveing, and the spawned particles are not, i have tried to use loadanimmesh to retain the cubes that i added, and i renamed them even, but problem is almost like the child entity is not moving with the parent entity
Quick example of what i would like to do is this
mdl=loadanimmesh("mdlname.3ds")
repeat
if keyhit(1) then end
moveentity mdl,1,0,0
create_engine_particle(mdl,"engspawn1")
forever
function create_particle(parent_entity, child_entity_name$)
engspawnref=findchild(parent_entity,child_entity_name$)
x#=entityx(engspawnref)
y#=entityy(engspawnref) etc..
engpart=createsprite()
positionentity engpart,x#,y#,z#
end function
Please help me someone im gonna go crazy :(
Quick example of what i would like to do is this
mdl=loadanimmesh("mdlname.3ds")
repeat
if keyhit(1) then end
moveentity mdl,1,0,0
create_engine_particle(mdl,"engspawn1")
forever
function create_particle(parent_entity, child_entity_name$)
engspawnref=findchild(parent_entity,child_entity_name$)
x#=entityx(engspawnref)
y#=entityy(engspawnref) etc..
engpart=createsprite()
positionentity engpart,x#,y#,z#
end function
Please help me someone im gonna go crazy :(