jetplane_pete 0 Posted March 25, 2005 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
sanctuary 19 Posted March 25, 2005 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
jetplane_pete 0 Posted March 25, 2005 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
Chris Death 0 Posted March 25, 2005 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
Rommel 2 Posted March 25, 2005 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......... Share this post Link to post Share on other sites
jetplane_pete 0 Posted March 25, 2005 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