Ai problems please help

Hello I’ve been racking my brain about this. Basically I’m using blueprint trees to control my Ai, so at the minute I have an aggro check and a free patrol. So the Ai wanders around constantly checking if and enemy is in range. If an enemy is in range they run to enemy and attack.

I have two types of Ai. The ones above and the ones I am struggling with. The second Ai stay inside houses etc and when an event occurs (alarm sounds) they all run out of the houses and spread out around the map (I have various points and they randomly choose which one to run to and a random position near to it), while running to the point I want them to still do aggro checks incase they see someone to attack and when the get there they begin wandering round aggro checking.

I’ve tried using behaviour tree and get them to run to point while checking aggro but doesn’t start wandering when they get there. But I can’t make them do it Ince so when alarm sounds they run out when second alarm sounds they run back in… Also I don’t know how link the alarm event to the behaviour tree I have a boolean in behaviour free if true makes Ai run to point but don’t know how to aer it up or link it to the event

Using this behaviour tree I now activate a noise and when heard turns a boolean to true and activates BeginSwarm. But I want to link the noise emitter to my level blueprint timeline so when the time on timeline gets to 1900 (becoming night time on the cycle) the siren sounds.

The story behind it is I have certain AI which wander round all the time day and night they have the basic behaviour tree. Then there will be other AI which stay inside of warehouses spread around the map. When siren sounds they all run out to random points (BeginSwarm) then start to wander around until the next siren sounds (aprox 0600) and the night time AI return to their warehouses until the next night and repeat. So obviously I need two behavior trees for day time and night time AI but want to get the night time AI sorted on this tree.

Please help hit a wall now

This is my level blue print so I want to try and get the time from the timeline to activate my Siren blueprint but don’t know how they can communicate

I have sorted this, I have different problems now but the question can be closed…