Home   Help Search Login Register  

Author Topic: [groupOne, 1] setWPPos getMarkerPos "MarkerOne"  (Read 1037 times)

0 Members and 1 Guest are viewing this topic.

jamie_psx

  • Guest
[groupOne, 1] setWPPos getMarkerPos "MarkerOne"
« on: 07 Jun 2003, 16:35:33 »
All right, I actually searched for the setWPPos command before posting here, but the description is not clear.

Is setWPPos used to create a brand new waypoint or to move an existing waypoint?

Also, if I have a group of four soldiers called a,b,c,d (with 'a' as the leader), and they have the following waypoints:

1-GetOut  (Hold Fire, Fast, Column, Aware)
2-Move     (Open Fire, Fast, Staggered Column, Combat)
3-GetIn     (Unchanged, Fast, Column, Aware)
4-Guard    (Unchanged, Limited, Column, Stealth)

And I want to change the original position of the second (Move) waypoint, what would I type in instead of 'groupOne'?
Would it be:
[a,3] setWPPos [myX,myY,myZ]

or

[(leader a),3 setWPPos [myX,myY,myZ]

????? ???

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:[groupOne, 1] setWPPos getMarkerPos "MarkerOne"
« Reply #1 on: 07 Jun 2003, 16:43:42 »
da setwppos do exactly wat it says

sets WPs pos ;)

nd da syntax wud b

[group a,2] setwppos [myX,myY,myZ]

u start countin WPs from 1 not from 0 - cuz da comp aoutoimatickly creates 1st wp on da position of da unit  ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

KyleSarnik

  • Guest
Re:[groupOne, 1] setWPPos getMarkerPos "MarkerOne"
« Reply #2 on: 07 Jun 2003, 18:42:55 »
I have a problem.

In a mission im making there is a jeep that your driving. When you enter a trigger the jeep runs out of fuel. That part works fine. But you probably know that when moving vehicles run out of gas the dont just stop, the keep rolling until they loose speed and stop. I have a fuel truck that has a MOVE wapoint right at the center of the trigger. After it gets to that WP i want the next WP, witch is a GET OUT wp, to be where the jeep has stoped.

How do do that?
« Last Edit: 08 Jun 2003, 00:59:19 by KyleSarnik »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:[groupOne, 1] setWPPos getMarkerPos "MarkerOne"
« Reply #3 on: 07 Jun 2003, 19:36:52 »
make it in script

Code: [Select]
@ (velocity jeep select 1 == 0) and (velocity jeep select 0 == 0)
[group (driver truckname),2] setwppos getpos jeep
exit

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta