OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ToyGuns on 17 May 2005, 19:58:16

Title: AI quiet (no report of enemies)
Post by: ToyGuns on 17 May 2005, 19:58:16
I have a mission with alot of enemies come at you. I don't want the AI to report the enemies. How can we disable AI reporting?
Title: Re:AI quiet (no report of enemies)
Post by: 456820 on 17 May 2005, 19:59:36
i dont think you can but if you could it would be very very tricky or you might have to look around in the config or bin files but that wouldnt be the sam on all comps
Title: Re:AI quiet (no report of enemies)
Post by: macguba on 17 May 2005, 20:01:13
Doubt you can.   That's not mission editing, that's messing with the game engine.

You could try enableRadio false.
Title: Re:AI quiet (no report of enemies)
Post by: ToyGuns on 17 May 2005, 20:35:20
THanks Macguba EnableRadio false is very close to what i need. But is there a way to just turn it off for that one AI unit? I dont code but some thing like this?
[unitname] = enableRadio false
Title: Re:AI quiet (no report of enemies)
Post by: THobson on 17 May 2005, 23:16:43
I'm afraid not.  It is all or nothing.  If the unit is not part of your group you should not hear it though - is that a way to do what you want?
Title: Re:AI quiet (no report of enemies)
Post by: Flauta on 18 May 2005, 01:42:55
Maybe Disabling the Autotarget?????

unit disableAI section

Operand types:
    unit: Object
    section: String

Type of returned value:
    Nothing

Description:
Disable parts of AI behaviour to get fine control over unit. Section is one of "TARGET" (disable watching assinged target), "AUTOTARGET" (disable independed target assigning and watching unknown targets), "MOVE" (disable movement).

Example:
    soldierOne disableAI "Move"

Like these....
{_x disableAI "autotarget"} foreach units player



Really no idea if that do the work.... jeje but wach out! the Team AI will be affected!


Cheers
Title: Re:AI quiet (no report of enemies)
Post by: RujiK on 18 May 2005, 19:55:03
That will disable targeting, not reporting.

I would simply suggest put every unit in his own group, thus they have no one to report too.
Very easy.
Title: Re:AI quiet (no report of enemies)
Post by: 456820 on 18 May 2005, 20:01:09
RujiK oh yeah i never thought of that but if this is not at the begining of the mission use [unit1, unit,2 etc etc] join group null to get them to exit the original group
then the same but instead of group null use
Code: [Select]
leader group_namei think thats right anyway
Title: Re:AI quiet (no report of enemies)
Post by: Flauta on 18 May 2005, 21:02:37
if all of the loons are in separated gropups, you also can use the General Barron's  Custom Formation Script (http://www.ofpec.com/editors/resource_view.php?id=433) script, and make some changes on it.. and U will have also a  custom formation!jeje

Cheers again

edit: fixed up link...
Title: Re:AI quiet (no report of enemies)
Post by: ToyGuns on 22 May 2005, 16:40:31
Thanks for your Help! Some very good ideas.