Home   Help Search Login Register  

Author Topic: Another patrol script....trouble....  (Read 1096 times)

0 Members and 1 Guest are viewing this topic.

modderman

  • Guest
Another patrol script....trouble....
« on: 18 Apr 2005, 02:06:07 »
Here is this "patrol" script im am trying to create....
it is going to be for a addon im creating...(arial drone),
but the object is the player sets a marker(radio)
and this script creates 4 waypoints, so that the unit circles around the marker....forever...until it is moved again....
here is what i have so far, but im stuck.....
All help appreciated!
Thanks...
« Last Edit: 18 Apr 2005, 02:06:36 by modderman »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Another patrol script....trouble....
« Reply #1 on: 18 Apr 2005, 09:15:48 »
well, looking at it...

your onmapclick is defined sort of screwy...

you pass a marker in the script call, with [bravogroup,"bravopoint"]exec "patrol.sqs", but then in 'patrol.sqs' you treat the marker like an object.

also there's a typo, pointscylce...

various other things too. it's fixed though, see attached. ;)

Offline Blanco

  • Former Staff
  • ****
Re:Another patrol script....trouble....
« Reply #2 on: 18 Apr 2005, 09:32:39 »
Not a bad idea btw...
Search or search or search before you ask.

modderman

  • Guest
Re:Another patrol script....trouble....
« Reply #3 on: 20 Apr 2005, 02:38:11 »
Thank you Bedges for the fix.
     I'm quite new at this...
I plan on implimenting this script into a new project of drones i have decided to make....
I have released a very beta one just to see if people would like the addon or not, so check it out in the Beta Addon Testing Forum
http://www.ofpec.com/yabbse/index.php?board=43;action=display;threadid=23295