OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: THobson on 19 Jul 2004, 10:20:22

Title: Guards leave their post
Post by: THobson on 19 Jul 2004, 10:20:22
I have two BMPs on Guard.  It is night and I attack the base they are located at with, amongst other things, an m21 and a LAW - so the world and his brother knows where I am.  Both BMPs head my way, but occassionally (actually quite often) one of them will fail to see me and just keep on driving.  It keeps going and I never see it again.

Does anyone have any idea how I can bring it back into the action?
Title: Re:Guards leave their post
Post by: macguba on 19 Jul 2004, 11:02:06
Activation:  repeatedly
Condition:   bmp1 distance baseFlag > 500
On activation:   bmp1 doMove getPos baseFlag
Title: Re:Guards leave their post
Post by: THobson on 19 Jul 2004, 11:18:32
Neat thank you.  DoMove is new to me.  I will have a look at it.  

Bye the way is there a Command Reference for anything later than v 1.85?
Title: Re:Guards leave their post
Post by: macguba on 19 Jul 2004, 11:40:54
Hardly any commands have been added since then, if any at all.   You could look through the readme for the upgrade and see.

I strongly recommend that you read the comref from front to back, like a book.   Don't stop to understand every command, but just get an idea of what's there.
Title: Re:Guards leave their post
Post by: THobson on 19 Jul 2004, 15:23:04
Thanks again.

In case anyone was wondering, as I was, what doMove would do to a unit that was at a guard waypoint, I wrote a little missionette to test it.  It seems the unit remains on Guard and after executing the doMove it returns to its Guard waypoint.