OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Taggart on 08 Nov 2003, 14:52:36

Title: AI's to target Civilian and Weapon Loadout
Post by: Taggart on 08 Nov 2003, 14:52:36
Can anyone tell me how to make AI's target a civilian as their primary objective  ??? Also have made a single player mission where I have altered the loadout for the Player to include Binocular and a LawLauncher, but it will not give him any Magazines for the Law, have tried various inputs, but none work, is he overloaded?  :-\

Any help would be most appreciated.
Title: Re:AI's to target Civilian and Weapon Loadout
Post by: Planck on 08 Nov 2003, 15:44:55
Try reading this thread:

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=14004

For an answer to your first query.

I think for the weapon and ammo thing you need to give him at least one law first before the weapon in order for it to be loaded, then you need to give him further laws as required.

Something like:

unit addMagazine "weaponname"
unit addWeapon "weaponname"
unit addMagazine "weaponname"
etc
etc

Not sure if you can combine the further ammo in one line or not though.


Planck
Title: Re:AI's to target Civilian and Weapon Loadout
Post by: Taggart on 08 Nov 2003, 17:14:18
Okay, that's great, thanks for prompt assistance.  :)