OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kilo11 on 26 Jul 2003, 20:49:11

Title: getpos to my group
Post by: Kilo11 on 26 Jul 2003, 20:49:11
How can I get an enemy unit (in this case a helicopter named "helo1") to go to the position of my group when my group has been detected by East.  

So far I have a trigger with "Detected by East" but I don't know how to properly use the getpos command with a group.  Any help appreicated.

-=Kilo=-
Title: Re:getpos to my group
Post by: LCD on 26 Jul 2003, 20:54:41
heloname domove getpos (leader groupname)

LCD OUT
Title: Re:getpos to my group
Post by: Kilo11 on 26 Jul 2003, 21:00:54
Thank you LCD, just one little questiong.

Do I put the (  ) in there or not.

I have:

helo1 domove getpos (Echo)

"Echo" is the group leader of my group.  If he dies, will the Helicopter still go to the group, or will it not work?

So basically I need to have it to where the helicopter will go to the group, not just the leader.  THank you LCD.

-=Kilo=-
Title: Re:getpos to my group
Post by: LCD on 26 Jul 2003, 21:05:15
u need em ;D

but wat u need 2 do is name da group (e.g echo = group this in init of leader)

now u do

heloname domove getpos (leader Echo)

dont name da leader echo

so now OFP knows da group echo nd wil check 4 its leader everytime ;D

LCD OUT