Jump to content

Luft08

Member
  • Content Count

    204
  • Joined

  • Last visited

  • Medals

Everything posted by Luft08

  1. Thanks, this is what I needed to know. I was unsure if the code would end when the "ON ACT" fired or if it would wait until that completed. BTW I would like to mark this as solved but I don't know how. (yeah, I'm a newbee.)
  2. I need to get the position of a marker. All markers follow a naming convention marker_1, marker_2 etc. I want to pass in a random number and return the marker position. I can build the string name but I think I need to convert that into an object. I've tried the following code: if (isServer) then { destinationNumber = round(random 50) + 1; _current_waypoint_str = "patrol_marker_"+str(destinationNumber); _current_waypoint_obj = missionNamespace getVariable [_current_waypoint_str, objNull]; _marker_pos = getPos _current_waypoint_obj; // <<<<------ This fails. // Do Stuff... }; I'm new to this. Can someone help me out? Thanks.
  3. Thank you. This has been driving me nuts. getMarkerPos _current_waypoint_str works!
×