News:

Happy 20th, FFvT3R!

Main Menu

m25ai help - ranged explosives

Started by Swingman, January 09, 2011, 02:30:32 PM

Previous topic - Next topic

Swingman

Hey

I think I need a little m25ai scripting help here.

How would you go about hindering an AI-controlled character from using a ranged explosive power, like a grenade, when the potential target/enemy is near allies of the character?

Would  something along the lines of "TRangedExplosive('grenade', time=3, subtype='not nearally')", do the trick or would ally in this case read allies of the "target/enemy"?

Thanks in advance...

Swingman

 :doh: I found this in the AI tactics doc. Don't know how I overlooked it to begin with:

Quote"TRangedExplosive('power name', pct=60, time=3, energy=None, mindist=50, maxdist=None, radius=None, type='enemy', subtype='none', situation='none', role='none', priority='medium', overpower=1)",

Use a ranged attack that explodes when it hits. The character will try to ensure that no friendlies are within range of the explosion. Set the radius to the size of the explosion.

It kinda answers my question, atleast the most important part of it. It doesn't really state what exactly makes the character "try to ensure that no friendlies are within range", but I guess I don't really need to understand that anyhow. I'm still in the dark conserning what ally refers to when placed as a subtype though - ally of foe or ally of me (can it even be placed in the subtype or is that just plain wrong?), but that's also no biggie.