Jump to content
Luigi4

Create a fire after a building is destroyed

Recommended Posts

Is it possible to set diesel storage tanks on fire after they are destroyed? The solution is probably pretty simple but I can't find an answer.

Share this post


Link to post
Share on other sites

Yes it's possible, but the solution is not so easy, depending on what do you want exactly. A specific object on map? an edited one? a specific class of objects for whole map?

 

Share this post


Link to post
Share on other sites
8 minutes ago, pierremgi said:

Yes it's possible, but the solution is not so easy, depending on what do you want exactly. A specific object on map? an edited one? a specific class of objects for whole map?

So I had in mind that the player calls in CAS after he destroys the local AA, the CAS then shoots a bunch of rockets at the Diesel Storage Tanks on Stratis airfield (2 Small Tanks + 2 Big Tanks). These then proceed to blow up and leave a fire on each Storage Tank.

Share this post


Link to post
Share on other sites

The probably simplest way:

-place a trigger around your tanks, let it none, none, non repeatable

in condition field:

nearestObjects [thisTrigger,["Land_dp_smallTank_F","Land_dp_bigTank_F"],triggerArea thisTrigger #0] findIf {damage _x >0} >-1

 

in on act field:
 

{
  _x setDammage 1;
  _x spawn {
    _fire = createVehicle ['test_EmptyObjectForFireBig',getpos _this,[],0,'can_collide'];
    sleep 0.5;
    _smoke = createVehicle ['test_EmptyObjectForSmoke',getpos _fire,[],0,'can_collide'];
    sleep 60;
    deleteVehicle _fire;
    deleteVehicle _smoke;
  }
} forEach (nearestObjects [thisTrigger,["Land_dp_smallTank_F","Land_dp_bigTank_F"],triggerArea thisTrigger #0]);

 

  • Like 3
  • Thanks 1

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

×