Naiss 28 Posted November 14, 2014 okey so i never tryed to set a waypoint for the player so when ever it runs a code it will need to set a way point to a marker called car_end but idk how to do it and here is my try: Code: player setWaypointPosition (getMarkerPos "Car_End"); Share this post Link to post Share on other sites
jshock 513 Posted November 14, 2014 (edited) That's because the first argument needs to be in waypoint format, see this page, so you will need to do something like this: [player, (currenWaypoint player)] setWaypointPosition [(getMarkerPos "Car_End"), 0]; Fixed stuff after typos were brought up below: [group player, (currentWaypoint player)] setWaypointPosition [(getMarkerPos "Car_End"), 0]; Edited November 14, 2014 by JShock Share this post Link to post Share on other sites
Naiss 28 Posted November 14, 2014 ye i tryed to look at that but i just can't get it to work and your code did not work either :/ Share this post Link to post Share on other sites
iceman77 19 Posted November 14, 2014 Small typo. Should be. [group player, (currenWaypoint player)] setWaypointPosition [(getMarkerPos "Car_End"), 0]; or [group player, 0] setWaypointPosition [(getMarkerPos "Car_End"), 0]; Share this post Link to post Share on other sites
das attorney 858 Posted November 14, 2014 Another small typo: currenWaypoint player should be currentWaypoint player Share this post Link to post Share on other sites
iceman77 19 Posted November 14, 2014 LOL we're tackling the problem together! I love this forum's members <3 Share this post Link to post Share on other sites
Naiss 28 Posted November 14, 2014 the setwaypoint is that the same as when you go on your map and hold shit and click? because i dont get anything showing me how many meters im away from the marker Share this post Link to post Share on other sites
iceman77 19 Posted November 14, 2014 I could be wrong but I don't think setWaypointPos creates waypoints. It's to set an existing waypoint's position I believe. _wp = (group player) addWaypoint [ getMarkerPos "car_end", 0 ]; _wp setWaypointType "MOVE"; _wp setWaypointBehaviour "AWARE"; _wp setWaypointSpeed "FULL"; _wp setWaypointCombatMode "RED"; Share this post Link to post Share on other sites
jshock 513 Posted November 14, 2014 setWaypointPosition just sets the position of the waypoint, or where the waypoint can be completed, the waypoint being attached to the player (Move, Search and Destroy, etc.), shift clicking is the personally waypoint, which I don't believe can be affected by any waypoint commands. Share this post Link to post Share on other sites
Naiss 28 Posted November 14, 2014 ahh there we go i see how it works right now, its almost like the createmarker commands but ye i get it thanks iceman This worked: _wp = (group player) addWaypoint [ getMarkerPos "car_end", 0 ]; _wp setWaypointType "MOVE"; _wp setWaypointBehaviour "AWARE"; _wp setWaypointSpeed "FULL"; _wp setWaypointCombatMode "RED"; Share this post Link to post Share on other sites