Home   Help Search Login Register  

Author Topic: createvehicle in any direction  (Read 488 times)

0 Members and 1 Guest are viewing this topic.

Nobby

  • Guest
createvehicle in any direction
« on: 13 Feb 2003, 23:00:28 »
I've been playing a lot with the new WW2 army packs and it came to my attention that the units could fire the 30cal without deploying it (virtually impossible unless you're Rambo); so I made a deploying and undeploying script and it works, accept for one little thing...
so here's my question to you, how do I createvehicle an object in the same direction that the unit holding the gun is facing?
The createvehicle gun defaults to 0 degrees/12 o'clock/North (which ever takes your fancy).
Any help will be much appreciated and may also come in handy for deployng things like the TOW launcher or MG42 etc.
Cheers again.
Nobby.

BraTTy

  • Guest
Re:createvehicle in any direction
« Reply #1 on: 13 Feb 2003, 23:18:16 »
Like this

_vehicle setdir (getdir _base)

Nobby

  • Guest
Re:createvehicle in any direction
« Reply #2 on: 14 Feb 2003, 15:22:15 »
works like a charm mate.
Cheers
Nobby