Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
handlebar

Attach Smoke to a Supply Module Crate.

Recommended Posts

Hey,

I've search the forums, and the interwebs and have not had any luck with this. The only script I have found is

Signal = "SmokeShellYellow" createVehicle position _this; this allowDamage false;

All this does is create a smoke at the place the crate is made, then it falls to the ground, often 50-75 meters from where the crate lands. I have a hard time finding the supply drop and this will help immensly.

Thanks.

Share this post


Link to post
Share on other sites

So something like this?

Signal = "SmokeShellYellow" createVehicle position _this; this allowDamage false; Signal attachTo _this

I do that, smoke pops falls to the ground, along with the crate, the chute slowly falls down a minute later.

Share this post


Link to post
Share on other sites

EDIT: Just read your last sentence. So the smoke grenade and the crate attach and the parachute is left unattached?

Share this post


Link to post
Share on other sites

Negative,

Using the above Code I end up with nothing attach to anything, the smoke, crate and parachute all fall separate.

Share this post


Link to post
Share on other sites

I would suggest using the attachedTo command before you attach the smoke. So something like this:

_parachute = attachedTo _this;
_signalAndCrate = Signal attachTo [_this];
_signalAndCrate attachTo [_parachute];

The reasoning for this is because the parachute and the crate are attached automatically.

Share this post


Link to post
Share on other sites

_parachute = attachedTo _this;  _signalAndCrate = Signal attachTo _this;  _signalAndCrate attachTo _parachute;Signal = "SmokeShellYellow" createVehicle position _this; this allowDamage false;

Placing this in the module crateini results in No Smoke, and crate detached from parachute.

Share this post


Link to post
Share on other sites

Are you placing the square brackets like in my example? I think that it requires an array, from looking at the Wiki.

Share this post


Link to post
Share on other sites

_parachute = attachedTo _this; 
_signalAndCrate = Signal attachTo [_this];  
_signalAndCrate attachTo [_parachute]; 
Signal = "SmokeShellYellow" createVehicle position _this;
this allowDamage false;

This is how I have it, also there is no smoke deployed with this.

Share this post


Link to post
Share on other sites

Your order is wrong. How can it attach Signal before it has been created?

Signal = "SmokeShellYellow" createVehicle position _this;
_parachute = attachedTo _this; 
_signalAndCrate = Signal attachTo [_this];  
_signalAndCrate attachTo [_parachute]; 

Share this post


Link to post
Share on other sites

Praise you Mr. Copyright for your tolerance of us codedly challenged. That worked like a charm.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×