OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 18 Mar 2005, 00:55:00

Title: moving markers
Post by: penguinman on 18 Mar 2005, 00:55:00
im trying to make a radio trigger that will make a marker move on the map to the position of a certain group, how would i do that.

ive tried in the trigg condition field.


mark1 setmarkerpos getpos grp1

but it dosent work.
Title: Re:moving markers
Post by: Raptorsaurus on 18 Mar 2005, 01:23:30
Try:

"mark1" setMarkerPos (getPos leader grp1)

Markers names are strings, so mark1 has to be in quotes.  Groups do not have positions, but the leader of the group does have a position.
Title: Re:moving markers
Post by: penguinman on 18 Mar 2005, 04:08:16
thanks
it works