I have difficulties with the map markers for my traders. The traders spawn random every restart on five different locations. When I joined my server directly after restart, the mapamerks to the current trader loaction is on the map but when I relog or I join 30min after restart, there is no mapmarker for the trader on the map. So the marker just disappear but the traders are still there. My traders are serverside.
Question
Airwaves Man
Hello folks,
I have difficulties with the map markers for my traders. The traders spawn random every restart on five different locations. When I joined my server directly after restart, the mapamerks to the current trader loaction is on the map but when I relog or I join 30min after restart, there is no mapmarker for the trader on the map. So the marker just disappear but the traders are still there. My traders are serverside.
Thats my code for the mapmarker.
Can someone help me out?
_unit_2 = objNull; if (true) then { _this = createAgent ["gsc_military_head_grey", [11604.31, 11765.723, -4.5776367e-005], [], 0, "CAN_COLLIDE"]; {_this removeMagazine _x;} count magazines _this; removeAllWeapons _this; _this switchMove ""; _unit_2 = _this; _this setDir -40.380417; _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; "; _this setUnitAbility 0.60000002; _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;}; _this = createMarker ["blackmarket", [11596.525, 11768.809, 0]]; _this setMarkerText "Black Market"; _this setMarkerType "Dot"; _this setMarkerColor "ColorBlack"; _this setMarkerBrush "Solid";
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now