Jump to content
Sign in to follow this  
nikiller

question about setWPPos and MOVE waypoint?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×