Home   Help Search Login Register  

Author Topic: Hitch a ride with a civvy and he goes off to his next waypoint when you leave  (Read 475 times)

0 Members and 1 Guest are viewing this topic.

Pravit

  • Guest
I figured out how to make civvies stop on radio command when you hitch a ride with them. I also know how to make them go to a waypoint after you get out of the car. The problem is, I don't know how to make them go to their NEXT waypoint. My script looks like this:

imdriver = driver vehicle aP
nextpos = getWPPos [imdriver,1]
doStop imdriver
@!(aP in vehicle imdriver)
imdriver doMove nextpos

But if the driver has waypoints 0-3, and he's currently going from #2 to #3 when the player gets out, he'll do a 180 and go back to #1. Could anyone tell me how to get him to keep going to his next waypoint?

Also, how do you give Radio commands names or labels? And have them only appear if a certain condition is met?

HuNtA

  • Guest
umm, not sure bout the hitchhiking, but 4 the text on the radio rather than alpha, bravo, ect.

When U make the radio trigger, find the "text" bt and write down what U wanna appear on the radio

to make them appear on certain conditions, jus goto the conditions bit and get rid of this and put down what conditions U want (eg !alive player if U wanna see if the player is dead)

Homefry31464

  • Guest
I have no idea of the syntax, but there has got to be a way to determine which waypoint he was going to, then after the stop command, tell him to move to the position of the waypoint he was moving to before he was told to stop.  I'm sure someone around here knows the correct commands.

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
i think u dont need 2 use da do momove @ all

try istead putin da next command @ da end

(vehicle imdriver) dofollow (vehicle imdriver)

tel me if it works ;D

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

Pravit

  • Guest
It worked perfectly! LCD, you're an OF genius  ;D shukran gaziilan...yimkin intu Hatl9abu missioni gariib...
« Last Edit: 28 Dec 2003, 22:00:38 by Pravit »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
;D

im OFP master (more n 2 yrs expirince  8)  :o)

nd i got som of da best scripts ;) n misions (at least i say so ::))

nd im da best player also ;) (ask ny1)

nywayz

use da solve botton (shud b around here somwere ;D)

if u found ur answer

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