OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ace Productions on 15 Jul 2004, 10:33:24

Title: AI Rearming
Post by: Ace Productions on 15 Jul 2004, 10:33:24
Hello,

How can I make an AI pick up a magazine from a crate? I found the "TAKEMAGAZINE" action, but if the crate contains 3 types of magazines, I don't know how to specify which one to pick.
Title: Re:AI Rearming
Post by: macguba on 15 Jul 2004, 12:23:16
I'm not convinced the action does anything other than make the loon play the animation ... maybe it does.   Anyway, you need to use addMagazine to give the loon the magazine you want.
Title: Re:AI Rearming
Post by: Wadmann on 15 Jul 2004, 19:30:06
Hello Ace!

Check this sticky topic (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=9376) and look for LCD's post. It has the action command, but it will be up to you to create the script to implement it. If you are successful in creating  a generic rearm script, please post it as I could use it too! ;)

                                                                    Wadmann

Edit: Sorry, I misread your post and thought that you wanted to pick up a weapon. I did not look further into the topic but your answer may be there none the less.