Jump to content
Sign in to follow this  
eegore

Attaching a smokeshell to a plane (addaction)

Recommended Posts

This is to hopefully make a cropdusting script.

I want to attach multiple yellow smokeshells to the wings of an AN-2 that are activated by a keypress or action menu. All the info I find is for OFP and therefore is outdated. I can attach gamelogics to a unit just fine but I am having trouble finding the proper smoketrail.

Is the proper way to just teleport active smoke to the gamelogice as needed? Will addaction be able to do that?

Thanks

Share this post


Link to post
Share on other sites

yes. Say you have 1 smoke nade and call it Smoke1.

And then just make the addiction execute a file and put this in the file:

_smokeNade = "Smoke1";
_smokeNade attachTo [nameOfVehicleOrAirplane, [0.1,0.1,0.15]];

all those numbers at the end of the line will tell how far away the smoke nade should be from the airplane in meters.

Also, are you making the mission for sp or mp? because you will need an extra function in the script that removes the action once the player executed the file otherwise they can keep pressing it which can or will cause unnecessary stuff to happen.

Share this post


Link to post
Share on other sites

It is SP so this should be easier to do.

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  

×