Home   Help Search Login Register  

Author Topic: Help with setwppos?  (Read 565 times)

0 Members and 1 Guest are viewing this topic.

BrAinOfJ

  • Guest
Help with setwppos?
« on: 21 May 2004, 16:01:32 »
I need to know if its possible using the setwppos command to make a specific type of waypoint.
In what im doing, when ever the setwppos command is used it seems to default back to a MOVE waypoint type.
Ive tryed laying out the waypoints in the editor, then for specific waypoints, replacing their location using [this, 6] setwppos [x,y,z] in the init field of the guy, and all goes smooth until the 6th waypoint, in which theatrics call for him to hold until a trigger is switched. When ive laid out the waypoints, ive made sure that the 6th waypoint is a HOLD type, but as ive used the setwppos to over-ride this wp, he moves on without the trigger being fired, infact, when the trigger is fired, he moves from the 7th wp back to the 6th.'

In summary, how do i define a waypoint type within a script using setwppos?

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Help with setwppos?
« Reply #1 on: 21 May 2004, 20:16:17 »
Hmmm.... I've never tried doing what you are doing with setWPpos, so I'm afraid I can't help you.

You may have to find another way to do what you want, without the setwppos command. In that case, more detail would be needed if anyone else were to help you.  8)
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with setwppos?
« Reply #2 on: 21 May 2004, 22:41:21 »
I've used setWPPos with triggered waypoints and it seemed to work for me, though I didn't actually check the waypoint type.   However, you do occasionally get funny things happening with waypoints and syncroed triggers.

For the avoidance of doubt .... what happens when you don't use the setWPPos command?   Having you checked that you are numbering the waypoints correctly?    From your description it doesn't sound like a pure setWPPos problem, not least because waypoints types are pretty fundamental and it's hard to imagine how using any command could change the type.
Plenty of reviewed ArmA missions for you to play

BrAinOfJ

  • Guest
Re:Help with setwppos?
« Reply #3 on: 22 May 2004, 02:38:18 »
The problem with not using the setwppos command seems to be that the guy walks back to the waypoint. i cant manually place it because its in a house...
Im gunna try looking at the way a waypoint is setout in the mission.sqm file, but i wanted to avoid that...

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with setwppos?
« Reply #4 on: 22 May 2004, 14:23:02 »
I just meant, does it work without the setWPPos command?    Put the the relevant parts of the mission on desert island or somewhere and check that the waypoints and triggers are working correctly with the extra commands.    It will help isolate the exact location of the problem (which may turn out to be nothing to do with setWPPos).
Plenty of reviewed ArmA missions for you to play

BrAinOfJ

  • Guest
Re:Help with setwppos?
« Reply #5 on: 25 May 2004, 11:02:10 »
Yeah it works without the setwppos. Ive just used the "Black out" so as soon as he moves, it seems like he is moving in the right connection, then it fades out so if he stuffs it, it dont matter