Is there a cog that makes an object (thing) freeze until a specified object (template) has been killed/destroyed.
Thanks!
                
                
            Thanks!
 
This is the static archive of the Massassi Forums.  The forums are
closed indefinitely.  Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
symbols
thing killThing
thing freezeThing
message startup
message pulse
end
code
startup:
SetPulse(.001);
return;
pulse:
while(GetThingHealth(killThing)){
   StopThing(freezeThing);
}
return;
endsymbols
message startup
message killed
thing freezeThing
thing killThing
end
#------
code
stratup:
// freeze code (only necessary if the thing normally moves)
StopThing(freezThing);
return;
killed:
if (GetSender() == killThing)
{
// move code goes here, can't remember any useful functions
}
return;
end