Hi everyone!
I was just wondering if it is possible to attach a marker or maybe a game logic to a vehicle in a maner that the marker or game logic would stick to it even if moving, on a car for instance.
I've tried a few things around without succes, I'm out of ideas. Anyone can help me?
I've tried this here at last and thought it would work but...
-----I've put a marker (tried with game logic too) named "MM01" on the map.
-----A trigger with " [This] Exec "Script.sqs " in the "On Activation" field.
-----And the "Script.sqs" :
#Loop
TrabantPos = GetPos Trabant
TrabantPosX = (TrabantPos Select 0) + 1
TrabantPosY = TrabantPos Select 1
TrabantPosZ = TrabantPos Select 2
MM01 SetPos GetPos TrabantPos
~0.5
GoTo "Loop"
The idea of the "TrabantPosX = (TrabantPos Select 0) + 1" line is to put the marker (or game logic) beside the car and make it keep this position.
Does it make sense at all?? If not, how can it be done?
I greatly appreciate any help!