AI artillery forward observer

Kill your comrades. Wholesale
Post Reply
User avatar
Spinoza
Posts: 37
Joined: Fri Sep 10, 2010 2:14 pm
Location: Here
Contact:

AI artillery forward observer

Post by Spinoza »

Hello all,
hope its ok I post a small question/request here? I would like to have a OPFOR AI artillery forward observer at some specific spot on the map. If this AI spots BLUEFOR/INDEPENDENT forces it calls in artillery at that specific location where the opposing force is. I believe there is something similar in Domination maps? I could never make head or tails of it. So, is it do able in any "easy" way?

User avatar
fer
Posts: 1586
Joined: Fri Jun 04, 2010 8:16 am
Location: Emotional wreck

Re: AI artillery forward observer

Post by fer »

Absolutely fine for you to post here, comrade!

Just off the top of my head: you could probably do the following:
  • Create a looping script that runs so long as the AI observer is alive; the script would:
    • Make a list of all BLUFOR/IND units within a particular trigger area (using the list command)
    • Evaluate whether the observer knows about their presence (using the knowsAbout command)
    • Grab the positional details of the known units and pass them to an artillery script
Shouldn't be too hard to do, especially if you have a pre-existing artillery script to trigger. Possibly the only complication would be knowing how to prioritise the target, but perhaps you could do that by evaluating its type and focusing on infantry (since that is what artillery will be best at killing).

Post Reply