nikiller 18 Posted January 30, 2012 (edited) hi, I am testing the setWPPos command. I usualy use move or doMove command, I never really used setWPPos and I would like to know more about it. After test it seems that when I use a MOVE waypoint the setWPPos doesn't work :confused:, I checked everything (group name, destination name, waypoint index). When I use GUARD, SEEK AND DESTROY or HOLD waypoint it works like a charm. My theory is this command only works with waypoint who never finish like GUARD,HOLD and so on. Can anybody can confirm that setWPPos doesn't work with MOVE waypoint or it is me who is doing something wrong? Here's the script I wrote set_wp_pos.sqs ;***************************************************** ;Set Waypoint Position Script by Nikiller v0.9b ;Set a waypoint to a marker position ;Note: Place a game logic named server on the map ;[grpName,WPNumber,"markerName"] exec "scriptName.sqs" ;***************************************************** if nik_host then {} else {goto "ende"} _grp = _this select 0 _num = _this select 1 _pos = _this select 2 [_grp,_num] setWPPos getMarkerPos _pos #ende exit cya. Nikiller. Edited January 30, 2012 by Nikiller Share this post Link to post Share on other sites
NacroxNicke 11 Posted January 30, 2012 I have seen scripts where they use setWPPos with two waypoints, a move waypoint and a cycle waypoint in the same spot, making the move command repeat itself when changing the location Share this post Link to post Share on other sites