Jump to content
Sign in to follow this  
GIAT industries

Put Weapons & backpack in ATV?

Recommended Posts

Hi everyone!

I've just tried one very cool single mission called "Tier1 :BringTheRain". I just want to know how to put "visible" weapons and backpack in the ATV?

thanx

Share this post


Link to post
Share on other sites

On the outside of the ATV? you'd have to use attachTo

_hold = "WeaponHolder" createVehicle (position ATV);
_hold addWeaponCargoGlobal ["M4A1",1];
_hold attachTo [ATV,[0,-0.8,0.1]];

It can also be picked up :) But whatever weapon you were holding will not be attached. I don't know where it went actually.

Edited by cuel

Share this post


Link to post
Share on other sites

Thanks Cruel!

I've tried to copy

_hold = "WeaponHolder" createVehicle (position ATV);

_hold addWeaponCargoGlobal ["M4A1",1];

_hold attachTo [ATV,[0,-0.8,0.1]];

in theInit line of ATV but I've got "Local variable in global space"... Sorry, I'm such a noob...

Share this post


Link to post
Share on other sites

hold = "WeaponHolder" createVehicle (position this); hold addWeaponCargoGlobal ["M4A1",1]; hold attachTo [this,[0,-0.8,0.1]];

You'd use that for an init field call. The _ before a variable name means it's "local" and can only be used in a script.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×