Jump to content
Sign in to follow this  
Naiss

setwaypoint ? Stupid Question...

Recommended Posts

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

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 by JShock

Share this post


Link to post
Share on other sites

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

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

LOL we're tackling the problem together! I love this forum's members <3

Share this post


Link to post
Share on other sites

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×