thanks for the help.
this worked in my test but just to make sure is there any reason this cog might cause trouble?
symbols
message activated
message pulse
message shutdown
thing player local
surface switch
flex pulse01
end
# ========================================================================================
code
activated:
player = GetSourceref();
if (GetWallCel(switch)==1) return;
SetWallCel(switch,1);
Setpulse(pulse01);
Sleep(.5);
SetWallCel(switch,0);
return;
pulse:
if (GetInv(player, 14) < GetInv(player, 20) * 50)
SetInv(player, 14, GetInv(player, 20) * 50);
return;
shutdown:
Setpulse(0);
return;
end
I droped a trip mine around here, could you help me look for it?