Jump to content
_Soletti_

Create smoke effect via trigger

Recommended Posts

For a small multiplayer mission I want the players to destroy 4 pumps via hold action. When its done there should be smoke emerging from the trigger which i moved into the pump.

smoke = "test_EmptyObjectForSmoke" createVehicle (getPos this);

I tried this command in the "on activation" box but it doesn't work. I'm not big on scripting so if someone knows a way to overcome this issue i'd be thankful for answers.

Share this post


Link to post
Share on other sites

To reference a trigger object in its own OnActivation field, use "thisTrigger," not "this."

Share this post


Link to post
Share on other sites
4 minutes ago, Harzach said:

To reference a trigger object in its own OnActivation field, use "thisTrigger," not "this."


Still doesn't work.

Share this post


Link to post
Share on other sites
3 hours ago, _Soletti_ said:

Still doesn't work.

 

smoke = "test_EmptyObjectForSmoke" createVehicle getPos thisTrigger;

Works fine here.

 

4gDq5Mn.png

  • Like 1

Share this post


Link to post
Share on other sites

For rig oil at sea, check your trigger's position (on deck or else), then use the alternate syntax:

createVehicle ["test_EmptyObjectForSmoke",getPosATL thisTrigger, [],0,"none"];

 

  • Like 1

Share this post


Link to post
Share on other sites

other

 

SmokObj = "SmokeShellred" createvehicle ((thisTrigger) ModelToWorld [0,0,0]);

 

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

×