Jump to content
  • 0

Armored SUV Gun Animations


Ghost

Question

I managed to make the Armored SUV turret opens and closes, the only issue is the gunner sticks out of the SUV when the turret is closed.

I utilized this thread as a reference

 

http://opendayz.net/threads/armored-suv-gun-animations.14848/

 

along with this one

 

http://opendayz.net/threads/release-mv22-ramp-door-animations.12520/

 

and I'm currently trying to see if the lock turret portion of this script can be utilized to finish it or if the turret can be opened automatically when a player enters the gunner seat if closed

 

http://www.armaholic.com/page.php?id=18709

 

 

 

Anyone got any ideas?

Link to comment
Share on other sites

Recommended Posts

  • 0

Question why won't this work to get back to gunner seat?


suvpmc_opencover = //function to open cover
{
_vcl = vehicle player; //assign the vehicle the pilot is in to _vcl
(cargo _vcl) action ["movetogunner", _veh,1]; 
_vcl animate ["HideGun_01",0]; //fold gun down
_vcl animate ["HideGun_02",0]; //fold gun down
_vcl animate ["HideGun_03",0]; //fold gun down
_vcl animate ["HideGun_04",0]; //fold gun down
_vcl animate ["CloseCover1",0]; //close cover1
_vcl animate ["CloseCover2",0]; //close cover2
_vcl setVariable ["suvpmc_cover", 0,true]; //set it opened
};

Just its basically the reverse of what the original one does? I'm not sure what (cargo _vcl)will be as I am new to scripting

Link to comment
Share on other sites

  • 0

Question why won't this work to get back to gunner seat?

(cargo _vcl) action ["movetogunner", _veh,1]; 

 

what is this supposed to do?

cargo is not a command in arma and will obviusly be nil, not to mention this the total syntax error here ... not sure what you expected this to do anyway

 

if you want to move the player to the gunner seat, it should be something like this:

player action ["movetogunner", _vcl]; 
Link to comment
Share on other sites

  • 0

if this action:

 

(gunner _vcl) action ["moveToCargo", _vcl,1];

 

Moves you from the gunner seat to the cargo seat then why doesn't this:

 

(cargo _vcl) action ["moveToGunner", _vcl,1];

 

work when trying to move from the cargo back to the gunner seat.

Link to comment
Share on other sites

  • 0

if this action:

 

(gunner _vcl) action ["moveToCargo", _vcl,1];

 

Moves you from the gunner seat to the cargo seat then why doesn't this:

 

(cargo _vcl) action ["moveToGunner", _vcl,1];

 

work when trying to move from the cargo back to the gunner seat.

 

see above post ...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...