OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Calamity on 04 Jul 2004, 05:45:16

Title: Set Marker Angle
Post by: Calamity on 04 Jul 2004, 05:45:16
Any one know what command to use to set the angle/direction of a marker. I've already used the SETMARKERPOS command in a looping script so that a marker moves with a unit. Now I want to set the direction of the marker, and arrow, to reflect what direction the unit is facing.
I searched but could not find anything.

Any ideas?
Title: Re:Set Marker Angle
Post by: CrashnBurn on 04 Jul 2004, 07:05:38
The only command I know of to change angle is setdir, but that only works on objects. A marker is enclosed in quotes making it a "string" therefore it won't work.
Title: Re:Set Marker Angle
Post by: Planck on 04 Jul 2004, 15:35:52
Just an idea.......maybe you could make your own markers.......one for each of maybe 8 cardinal directions.

Have them set on the map somewhere out of the way.

Then detect when your unit changes direction and swap the marker for the appropriate one.


 ;D


Planck