Author Topic: Bot Event Problem  (Read 791 times)

Hi, blockland people. I am in need of your help. I'm trying to make a gamemode based on Payday, but there is a glitch that's ruining the game. For some reason, bots only react to you when you touch them. The rest works, if you touch them while they are in "Friendly" State they don't attack, and when you rob the bank, they just do their things... Until you touch them, that's where what was supposed to happen happens. The event goes like this:
- 0ms   onBotSpawn   Self   BotAttack   AttackPlayers   10   30   
X 0ms   onBotSpawn   Bot   SetWanderDistance   Distance-->   8
X 0ms   onBotSpawn   Bot   SetIdleBehavior   Look_On
X 0ms   onBotSpawn   Bot   SetAppearance   Cop   1   1   3
X 0ms   onMinigameRoundEnd   Self   setEventEnabled   9   X
X 0ms   onMinigameRoundEnd   Self   setEventEnabled   0   -
X 0ms   onBotSpawn   Bot   SetSearchRadius   FOV------>   50
- 0ms   onBotTouch   Bot   GoToBrick   abred
X 0ms   onMinigameRoundStart   Self   setBotType   Default
X 0ms   onBotSpawn   Self   BotAttack   AttackNone   10   30   
And when you rob the bank\touch the laser security systems\get seen on camera, The GoToBrick toggle makes the bots block the door, and BotAttack AttackPlayers toggles. What do i do?

Honestly for something that complex it'd be best to write a script to mimic the AI of the Payday bots rather than trying to event it all. Like creating a radius search around the bots, checking which direction they're facing, seeing if the player has his mask on/off or has a weapon in his hands, etc.