Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Archosaurusrev

Assigning an area as "hostile territory"/Dynamic AI attack

Recommended Posts

Is there any way to specify an area with maybe a marker as hostile, so when units from the opposin side cross into it, they go into combat mode/move around cautiously?

I could do that with waypoints, but my point is that I want dynamic AI.

Second thing, is there any way to make AI attack a marked waypoint/area dynamically without any kind of AI mods?

I mean, like, if you place a few vehicles and some infantry then assign them to attack the area, they'll use things like flanking maneuvers, covering fire and so on that COULD be achieved through waypoints and script, but then it wouldn't be dynamic.

I'm probably asking for too much, and should come back in maybe 5 years, but the RV engine can do a load of things...

Share this post


Link to post
Share on other sites

I haven't heard of a way to script dynamic AI behavior yet, but somebody else probably has (maybe).

For the hostile area idea, you could probably try something along the lines of this:

{_x setbehaviour "COMBAT"} foreach thisList

Place this in a trigger with OPFOR / BLUFOR activation, make the radius however big you want, and set it to repeatedly.

Edited by tryteyker

Share this post


Link to post
Share on other sites

@Teyker

What does the _x command do?

The way I see it, the script makes BLUFOR/OPFOR = _x set their behaviour to combat every time _x enters the area, _x being the unit that enters the area...?

Share this post


Link to post
Share on other sites

In the example above _x is simply the group entering the area, yes.

thisList is every group/unit in the trigger.

Share this post


Link to post
Share on other sites

Second thing, is there any way to make AI attack a marked waypoint/area dynamically without any kind of AI mods?

I mean, like, if you place a few vehicles and some infantry then assign them to attack the area, they'll use things like flanking maneuvers, covering fire and so on that COULD be achieved through waypoints and script, but then it wouldn't be dynamic.

First thing I thought of was UPSMON script (it's not a mod!!) which does exactly this - setup a marker area, add some groups, they will patrol dynamically the marker area and also has a lot of other parameters (fortify buildings, stay on roads while patrolling, etc).

https://dev-heaven.net/projects/upsmon/wiki

Share this post


Link to post
Share on other sites
Sign in to follow this  

×