Home   Help Search Login Register  

Author Topic: MArker direction  (Read 985 times)

0 Members and 1 Guest are viewing this topic.

Offline WizzyWig

  • Members
  • *
  • Mod Maker
    • Oblivion Promotions
MArker direction
« on: 02 Mar 2004, 14:36:57 »
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.

Code: [Select]
_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


Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:MArker direction
« Reply #1 on: 02 Mar 2004, 15:36:19 »
You can't (afaik)...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline WizzyWig

  • Members
  • *
  • Mod Maker
    • Oblivion Promotions
Re:MArker direction
« Reply #2 on: 02 Mar 2004, 15:44:24 »
(afaik)... ????

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:MArker direction
« Reply #3 on: 02 Mar 2004, 15:44:53 »
As far as I know.

It seems like marker direction cant be changed.  As you I tried SetDir, and that doesnt work.  There isnt a SetMarkerDir command (which is what I was looking for), so it looks like once a marker is down, it cant be rotated.

However, I was thinking of some ways to "fake" what you are trying to do (which I assume is to put a marker on the map in the position and direction of a missile), using two point markers, and some clever trigonometry you could make one point the front end of the missile, and the other point the back end.  Have them close enough together, and small enough ti might look like a roundish line.  Sloppy, and possibly ugly I know.  But thats the best I came up with.
« Last Edit: 02 Mar 2004, 15:52:57 by [icarus_uk] »

Offline WizzyWig

  • Members
  • *
  • Mod Maker
    • Oblivion Promotions
Re:MArker direction
« Reply #4 on: 02 Mar 2004, 16:05:37 »
could you  you make a simple exsample useing a A10

Fishion

  • Guest
Re:MArker direction
« Reply #5 on: 02 Mar 2004, 17:16:26 »
How about making several Markers, everytime the same Marker just lets say with a different direction of about 10° (i.e. 0°, 10°,20°,30°...).
The place the Markers off-map so they can't be seen (or set the size to 0).
All you then need is to pcik the right marker.
Okay 10° isn't quite exact but the way markers look, they never do anyhow.

-Fishion