Bots and Simulations > Bot Tavern
How do you make a bot stop moving?
Testlund:
I couldn't find any explanation on the wiki how to stop a bot once it has started moving, to prevent it from keep moving forever.
Moonfisher:
I don't think I understand the question... you mean like .fixpos or fluid resistance ?
Numsgil:
You can check against *.velup, etc. and feed the negative of that value in to .up, etc.
See Sysvar list if you haven't yet. There's good references there for different sysvars you can use.
Testlund:
I've been looking through the sysvar lists and bot tutorials the whole evening. I understand what they mean but not how they are supposed to be combined. I tried this, but it has no effect on stopping the bot:
cond
*.shflav -1 =
start
25 .up store
stop
cond
*.myup 25 =
start
-25 .up store
stop
cond
*.shflav -6 =
start
25 .dn store
stop
cond
*.mydn 25 =
start
-25 .dn store
stop
Moonfisher:
mydn is not you movement speed, it's the amount of .dn commands in the dna...
.veldn is your speed... and if you set .up to -25 you'll be moving backwards...
Navigation
[0] Message Index
[#] Next page
Go to full version