Jump to content
Sign in to follow this  
Moon_chilD

Create a VAS Ammobox ingame

Recommended Posts

Hey guys,

okay...the title is a bit bad chosen but okay.

What I want to do. I want to have the ability to go in game to an object (for example vehicle named "car"), scroll on it, get an option to create an ammobox and then a ammobox appears at the players position.

So far it should be easy. I guess one can make that with the createVehicle function.

My problem is: This ammobox should be a VAS box. That means it needs a script in its init-line.

Any Ideas?

Many Greetings

Moony

Share this post


Link to post
Share on other sites

I have an idea, but not sure if it works. When "_crate" spawns, run this:

[_crate addAction["<t color='#ff1111'>Virtual Ammobox</t>", "VAS\open.sqf"],"BIS_fnc_execVM",true,false] spawn BIS_fnc_MP;

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  

×