Home   Help Search Login Register  

Author Topic: switching positions  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

BronzeEagle

  • Guest
switching positions
« on: 24 Dec 2004, 12:58:12 »
I got a girl in the drivers seat and a guy in the back, i want them to switch positions without me having to use my mouse.  The action to put someone in the drivers seat is STR_ACTION_TO_DRIVER
and the action to get the girl out the drivers seat is
STR_ACTION_GETOUT
so I'll figure something out I guess...

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:switching positions
« Reply #1 on: 24 Dec 2004, 13:50:00 »
Just eject each of them.

man action["eject",vehiclename]
woman action["eject",vehiclename]

Then

man AssignAsCargo vehiclename
woman AssignAsDriver vehiclename

Might also have to do this:

man action ["get in",vehiclename]
woman action ["get in",vehiclename]
 
urp!

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:switching positions
« Reply #2 on: 24 Dec 2004, 14:02:21 »
An alternative might be to just unassign them from the vehicle and wait for them to get out on their own steam.  After assigning them you might need to do an orderGetIn true.

Plenty there to be experimenting with.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:switching positions
« Reply #3 on: 24 Dec 2004, 20:53:59 »
I have an easier way.

If the guy is called.....lets say guy and the bike  is called bike:

guy action ["movetodriver", bike]

This will of course switch them instantly.......no dismounting and remounting.


Planck

I know a little about a lot, and a lot about a little.