This is based on the "attach_entity" function in movement.wdl.

code:

function my_attached_entity()
{
my.passable = on;
while(you) // prevent empty synoym error if parent entity was removed
{
// do stuff...
wait(1);
}
remove(me);
}




Conitec's Free Resources:
User Magazine || Docs and Tutorials || WIKI