Home   Help Search Login Register  

Author Topic: Shoot from vehicle  (Read 2557 times)

0 Members and 1 Guest are viewing this topic.

Offline angora

  • Members
  • *
Re:Shoot from vehicle
« Reply #15 on: 20 Jul 2004, 16:51:32 »
I've found this script ; it puts a MG on the roof of a vehicle (a HMMWV in my example). Works perfect !

In init.sqs file, put :

[Nameofthevehicle,Nameofthemachinegun,height] exec "MGCarry.sqs"

exit



(You can do this differently, of course)

For a HMMWV, for example, put a height of 0.785 (warning : a "." for a ",").

Here's the script :

_carrier = _this select 0
_cargo = _this select 1
_height = _this select 2

endCargoSession = false

goto debug

#carrier

_x = (getPos _carrier) select 0
_y = (getPos _carrier) select 1
_z = ((getPos _carrier) select 2)+_height

_cargo setPos [_x, _y, _z + 0.9 ]
_cargo setDir (getDir _carrier)

~.01

? (!endCargoSession) : goto "carrier"

@ endcargosession
_cargo setpos [_x,(_y)-1.5,0]

exit


where do you put this script (i dont know scripting) :-[ ???
« Last Edit: 20 Jul 2004, 16:52:04 by laurence101 »
Build a man a fire and he will be warm for the night, set a man on fire and he will be warm for the rest of his life

DBR_ONIX

  • Guest
Re:Shoot from vehicle
« Reply #16 on: 20 Jul 2004, 17:49:49 »
I found this in my user folder that I've had for ages..
It's the mission that came with the script
:)
Its attached
- Ben

1shottokill

  • Guest
Re:Shoot from vehicle
« Reply #17 on: 20 Jul 2004, 17:54:49 »
1 of the problems with putting an AK-74 or a M16 is that the blokey/gunner probably won't move with the gun, I saw a chopper with a MP5 sticking out of the window but the gunner guy just stayed in one place!

DBR_ONIX

  • Guest
Re:Shoot from vehicle
« Reply #18 on: 21 Jul 2004, 14:25:54 »
If you make a turret, and put the gunner proxy in the selection of the turret.. The gunner will move with the turret (The BAS Little Bird, thats the addon your talking about, I guess.. Couldn't do this I suppose because the gunner couldn't spin around, as it'dd look auwful..)
- Ben