Jump to content
Sign in to follow this  
wizzywig

Marker direction

Recommended Posts

ok a stupid question is it posible to move a markers direction its posible in the editor but with i try to move a maker direction by script it dont work please can you help.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_Tomahawk1 = _this select 0

_Marker1 = _this select 1

_Track = "Arrow"

_Compleat = "Empty"

_updatetime = 0.01

#Tracker

? ((not alive _Tomahawk1) or (isnull _Tomahawk1) or ((getdammage _Tomahawk1) == 1)) : goto "end"

_Tomahawkpos = getPos _Tomahawk1

_Tomahawkx = _Tomahawkpos select 0

_Tomahawky = _Tomahawkpos select 1

_Tomahawkz = _Tomahawkpos select 2

;;;;HOW CAN I TURN THE MARKER;;;;

_Marker1 SetDir (getDir _Tomahawk1)

_Marker1 setmarkertype _Track

_Marker1 setmarkerpos [_Tomahawkx, _Tomahawky, _Tomahawkz]

~_updatetime

goto "Tracker"

#end

_Marker1 setmarkertype _Compleat

exit

Share this post


Link to post
Share on other sites

Check out the command reference from BIS. There is no setMarkerDir for scripts afaik. One of the dozens of functions we have requested from BIS in OFP and OFP2.

Tomahawk wow_o.gif how'd you get your hands on one of those? biggrin_o.gif

Share this post


Link to post
Share on other sites

i maid it and i gotta say its impressive

ok appently there is away to place to markers and get them to follow the direction of the tomahawk if any one has this done or would like to help out please email me an exsample to

Master_wiz@hotmail.com

Share this post


Link to post
Share on other sites

Cool

only way to do it is to place 6 or 12 markers in 6 or 12 different directions. Name them markername_(0->11) and blank out the 5 or 11 that you do not use via setmarkertype "empty". Anothwerwords, make a scriptung that decides which marker best represents current direction. biggrin_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×