Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Update fnc_taskPatrol func header #360
I noticed that an error is thrown from fnc_addWaypoint if the position and radius wasn't passed so they would not be optional.
Also, could someone explain to me the point of line 49: private _this += _this;
@esteldunedain Thank you for the explanation. I think what is throwing me off is the scope of _this. I was thinking that _this was equal to [1,2,3,1,2,3,4] instead of [1,2,4] for every instance after that particular code block.... Looking over this I realized that sqf doesn't have a "+=" command for adding like other languages. Sorry about that.
I figured out where it is going wrong. If all that is passed to the function is the group then
`20:15:34 Error position: <addWaypoint [_position, _radius];
Would it be best to leave the code the way it is and just change the func header as I proposed, or change the code to allow for only passing a group?