←  Mapping Support

Fallout Studios Forums

»

AI targetting & attack type

The Shell's Photo The Shell 02 Sep 2008

OK, I have set up an enemy AI. It produces Nuke Launchers which then hunt and replaces them when destroyed. I haven't set up attack priorities or object lists so the nuke launcher chooses the nearest unit for its target.

What I need to know is- how do I have the nuke launcher set it's ammo to either conventional nukes or neutron shells depending on the type of target? I know about object lists, attack priorities and the use command button ability but how do I set up scripts that detect the chosen target for shell selection?

Thanks
Quote

Dutchygamer's Photo Dutchygamer 02 Sep 2008

That may be very hard too do... I'd suggest looking at the Ranger scripts; he sometimes switches to FB when attacking garrisond structures.
Quote

nip's Photo nip 02 Sep 2008

There is a condition under 'Unit' >>> 'Sighted' that could do the job...

*** IF ***
[???] Unit '???' sees a(n) '???' belonging to Player '???'.
*** THEN ***
Edited by nipthecat, 02 September 2008 - 17:52.
Quote

The Shell's Photo The Shell 03 Sep 2008

Dutchygamer said:

I'd suggest looking at the Ranger scripts
Do you mean AmericaInfantry.ini or in-map scripts?

nipthecat said:

There is a condition under 'Unit' >>> 'Sighted' that could do the job...

*** IF ***
[???] Unit '???' sees a(n) '???' belonging to Player '???'.
*** THEN ***
The 'unit sighted' scripts only apply to those in sight of the nuke launcher not its chosen target but I think if I use this with attack priorities, it will work. However the nuke launcher will probably attack units on the edge of its sight range and so wander in range of base defenses.
Quote

JJ's Photo JJ 04 Sep 2008

Put it as a generic script, not 'Unit' >>> 'Sighted'.
Edited by JJ_, 04 September 2008 - 09:53.
Quote