Jump to content
Sign in to follow this  
SirRarius

How can I create wrecked vehicles without them bursting into flames?

Recommended Posts

I need to create some wrecked (preferably burned out) vehicles in a mission. They do not have matching wreck classes in CfgVehicles (T90 and Avenger for example) so I can't just spawn them.

I have tried spawning the vehicles and doing a "setDamage 1" on them, but they always explode and burn... just what I don't want. I need them to be old burned out wrecks.

Help?

Edited by SirRarius

Share this post


Link to post
Share on other sites

1) Make a unit and set it to 'Player'

2) Open up Spawn menu, go to Side, scroll down to Empty

3) Look for Wrecks tab

4) ???

5) Profit!

Share this post


Link to post
Share on other sites

If you set their health, fuel and ammo to 0 then they should be fine. If they have fuel and ammo then they'll burn and go bang

Share this post


Link to post
Share on other sites
1) Make a unit and set it to 'Player'

2) Open up Spawn menu, go to Side, scroll down to Empty

3) Look for Wrecks tab

4) ???

5) Profit!

As I mentioned, there is no T90 wreck, nor is there an Avenger wreck...

I should also have pointed out that I need to do this in code.

---------- Post added at 01:09 AM ---------- Previous post was at 01:08 AM ----------

If you set their health, fuel and ammo to 0 then they should be fine. If they have fuel and ammo then they'll burn and go bang

Aha... That sounds very pausible. I'll try it out tomorrow.

Share this post


Link to post
Share on other sites

I have just tested that and it doesn't work. I put the following code in:

_v = _type createVehicle _pos;

_v setDir _dir;

removeAllWeapons _v;

_v setFuel 0;

_v setDamage 1;

and it still bursts into flames!

Any more suggestions?

Share this post


Link to post
Share on other sites

Create them in the sea and damage them and then move it to your location.

Water puts out fire.

Share this post


Link to post
Share on other sites
I have just tested that and it doesn't work. I put the following code in:

_v = _type createVehicle _pos;

_v setDir _dir;

removeAllWeapons _v;

_v setFuel 0;

_v setDamage 1;

and it still bursts into flames!

Any more suggestions?

I may be wrong but

removeAllWeapons

won't work on vehicles only on people

Share this post


Link to post
Share on other sites

Other than dunking them in the water you can do it this way.

place this in the objects init box, the name of the object is t1 for this test.

t1 setPos [getpos t1 select 0, getpos  t1 select 1,  -0.2]; t1 setdamage 1;t1 enableSimulation false;

Share this post


Link to post
Share on other sites
I may be wrong but

removeAllWeapons

won't work on vehicles only on people

According to the biki removeAllWeapons does the following... "Remove all weapons and magazines of the unit. On vehicles only ammo is removed"

---------- Post added at 11:39 PM ---------- Previous post was at 11:38 PM ----------

Other than dunking them in the water you can do it this way.

place this in the objects init box, the name of the object is t1 for this test.

t1 setPos [getpos t1 select 0, getpos  t1 select 1,  -0.2]; t1 setdamage 1;t1 enableSimulation false;

Ahaaaa! Got it!!!

enableSimulation false;

does exactly what I want... Thanks

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  

×