Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Testlund on September 12, 2014, 11:40:43 AM
-
Is there a way for a bot to sense when a tie has been attached to it?
-
This works if the bot sees another bot that can shoot ties.
cond
*.eyef 0 >
*.reftie 0 >
start
2000 .mkslime store
stop
It's just that keeping the slime up is very nrg consuming. So I was thinking it would be more economical if the bot doesn't create slime until a tie has been fired.
-
*.tiepres .deltie store
or
cond
*.numties 0 >
start
(do something)
stop
-
Thanks! :)