Home   Help Search Login Register  

Author Topic: Vehicle Reverse  (Read 470 times)

0 Members and 2 Guests are viewing this topic.

minnow11

  • Guest
Vehicle Reverse
« on: 18 Jul 2003, 17:54:04 »
Hey

Involving a few waypoints and triggers I'm simply trying to get a HumV to move forwards and backwards a very short distance. To give a brief description, this is for a base entrance where I have a trigger that detects a west unit at the entrance, and then the HumV drives forward and off the road so the west unit can pass.

Just on the other side of the entrance, I have another trigger that detects the passing west unit which I would also like for it to activate the second waypoint of the HumV which is for it to reverse back onto the road. The triggers are not the problem, I set the second waypoint in front of the HumV instead of behind, and when the west unit passes it successfully moves to its next waypoint ahead of him.

However when the HumV's second waypoint is behind him where I would like it, he can't get there because he doesn't want to reverse. I make room for him to drive forward and do a U-Turn and he does, driving back onto the road but not how I would like.

I need the HumV to reverse. Please someone who has the answer reply and let me know.

Regards
Minnow
« Last Edit: 18 Jul 2003, 17:55:32 by minnow11 »

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Vehicle Reverse
« Reply #1 on: 18 Jul 2003, 18:58:36 »
experiment with the setvelocity command.

vehicle setVelocity [x, z, y]
Operand types:
    vehicle: Object
    [x, z, y]: Array
Compatibility:
    Version 1.8 required.
Type of returned value:
    Nothing
Description:
    Set velocity (speed vector) of vehicle.

 ;D
Not all is lost.