Jump to content
Sign in to follow this  
jetplane_pete

moving waypoints

Recommended Posts

Guys hi

Trying to use the following to move a waypoint

;mobileWP

_unit = this select 0

_mwp = this select 1

[_unit,_mwp] setWPPos getPos player

exit

the unit & mwp input are from a waypoint activation

i.e. [inf3,2] exec "mobwp.sqs"

I get an error query

"_mwp = select 1#: error select: type bool expected array"

Any idea what I'm getting wrong ?

thanks

Pete

Share this post


Link to post
Share on other sites
Quote[/b] ]"_mwp = select 1#: error select: type bool expected array"

Strange , this error message is missing the " this " that is supposed to be there in your script ?

Share this post


Link to post
Share on other sites

Strange , this error message is missing the " this " that is supposed to be there in your script ?

Thats an error on my part,

error message reads

_mwp= this select 1 #: Error select: type bool, expected array.

Sanctuary love your patrol anim's they form big part of the mission I'm working on

P

Share this post


Link to post
Share on other sites

hmm - try _this select 1 instead of this select 1

The error message refers here to a true/false, and

not to the array you passed onto that script.

It's been some time ago when i was involved into scripting,

but i seem to reckon that it was _this, which belongs to

the passed array.

~S~ CD

Share this post


Link to post
Share on other sites

This isnt what your looking for but howcome you can move waypoint on the map if they are shown? It can realy annoy you in a multiplayer game......... crazy_o.gif

Share this post


Link to post
Share on other sites

Dr Death you called it right, I had all ready worked it out,

one of those doh ! moments, but thanks.

Rommel - its an AI aggressive script, allowing reinforcements to move towards the action whereever it might be.

P

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  

×