Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How do I make a bot jump
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do I make a bot jump (Read 1119 times)
Thief
March 30, 2009, 12:24:38 AM
I've always heard AI had stiff knees..
Ad Bot
Advertisement
Chrono
March 30, 2009, 03:13:00 PM
botref.setImageTrigger(2,1);
botref.schedule(30,setImageTrigger,2,0);
See if that works, of course, replacing botref with whatever your bot is supposed to be in the function.
Space Guy
March 30, 2009, 03:16:55 PM
That only works if the bot has a weapon image mounted on that slot for some obscure reason. Do what Rotondo's Zombies did and mount a blank image to that point (he called it "zombieJumpImage" or something, search the files) and then you can trigger it.
Alternately, use an AIConnection and AIConnection.setTrigger(%slot,%on);, but that will remove the bot's automatic setMoveDestination function and require you to use AIConnection.setMove() which is complicated.
Chrono
March 30, 2009, 03:29:59 PM
Ah, I see. So that's probably why it worked in v0002, as the players (most of the time) had an image mounted in that slot.
I never tried it in this version, so I didn't know.
Thief
March 30, 2009, 04:49:44 PM
Danke!
Sockton
March 30, 2009, 09:20:59 PM
Quote from: Thief on March 30, 2009, 04:49:44 PM
Danke!
..?
Thief
March 30, 2009, 10:29:47 PM
Quote from: Sockton on March 30, 2009, 09:20:59 PM
..?
German for thanks.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
How do I make a bot jump