Bots and Simulations > DNA - General

Not shooting?

(1/1)

kage:
For some reason this bot I am working on doesn't fire. Everything else seems to work fine for it though  


--- Code: ---cond
*.robage 0 =
start
7 989 store
stop

cond
*.vtimer 0 =
start
*.thisgene 1 add .mkvirus store
stop

cond
7 *989 !=
start
50 .repro store
stop

cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
start
16 .shootval store
-1.shoot store
*.refvelup .up store
stop

cond
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop

cond
*.tiepres 0 !=
start
99 .repro store
stop

cond
*.tiepres 0 >
start
.tieval .tieloc store
1000 .tieval store
stop
--- End code ---

Numsgil:
It seems to fire in the simulation I put it in.  Maybe it was a phantom problem

EricL:
You are missing a space between -1 and .shoot.

kage:

--- Quote from: EricL ---You are missing a space between -1 and .shoot.
--- End quote ---


Thanks, it fires now.

Navigation

[0] Message Index

Go to full version