| Blockland Forums > Modification Help |
| Bot Damage |
| (1/5) > >> |
| cucumberdude:
I'm working with AI Players and I want to allow bots weapon's (mountImage + setimagetrigger) to damage players exactly as the normal weapons would. However, this isn't working. I THINK this may have to do with minigames, but I'm not really sure. Is there a way to add bots to a minigame? Or do I need to repackage some sort of projectile collision to make it work with bots? I'm sure this has been addressed before, but search yielded no conclusive results - but feel free to point me in the right direction if you know of a thread! |
| Daenth:
I can't access it at the moment but... try looking through the Bot Events coding if you have not already done that. |
| cucumberdude:
Took a look at the code, couldn't find the section pertaining to damage/weapons. Could anyone point me in the right direction? |
| cucumberdude:
Also; another bot question. I'm using armor::onDisabled() to detect bot death. Any way I could get the killer? I saw this in Amade's code, but I don't really understand it... --- Code: ---if(isObject(%client = %obj.lastPusher) && (%obj.lastPushTime + 1000) > getSimTime()) --- End code --- |
| cucumberdude:
TRIPLE TOAST Ok. So, I've got some things cleared up and some things far from cleared up. I solved all my damage problems using AIConnection and adding the fake client to my minigame. Yay! However, this now causes a spam of error messages whenever a bot dies. I also found a workaround for the armor::onDisabled problem. So my question now is, how do I fix the error messages? |
| Navigation |
| Message Index |
| Next page |