Jump to content

is there a way to replace an object that is destroyed with a different object?


Recommended Posts

=KG76=flyus747
Posted

I am trying to create a practice range where if I kill a tank, it will spawn a different tank right away, is that possible in the editor?

 

many thanks.

Posted

Very possible.

 

Use a respawner MCU.

 

Connect your onKilled to the respawner, and when the tank is killed it will respawn a new tank from the respawner.

Posted

Be careful however that the destroyed tank is not at the same place of the one to be respawned. Otherwise do delete the destroyed tank (maybe still burning) first and then spawn the new one.

Just an additional comment here. I had the following issue in the past, and it took me sometime to understand what was happening: If you deactivate an object (it is not visible and seems to disappear) it is not deleted. So if you spawn a new object on the same spot they will collide and the new spawned object will be destroyed. This means that a deactivated object seems to be physically in the background. 

  • Like 1
=KG76=flyus747
Posted
On 11/17/2021 at 6:09 AM, Sketch said:

Very possible.

 

Use a respawner MCU.

 

Connect your onKilled to the respawner, and when the tank is killed it will respawn a new tank from the respawner.

What about a bomb crater?

 

I was thinking have a fake_block on the airfield and then if it gets destroyed by bomb, the fake_block will be replaced by a "Bomb crater" which is just a bomb crater decal on top of sandbags so airfield bombing would be possible in IL2. Is this fantasy or can it be implemented with current mission editor?

 

 

The fake_blocks would be placed on the runway something like this so different layouts can be achieved

1483786171_fakeblockstobombcraters.thumb.PNG.b6189918464167761afeaaa2eb5f71c4.PNG

Posted

Ground entities don't have that type of logic. They're just set dressing... Place and forget. You can not remove them in a game session.

  • Upvote 1
Posted

Ahhh! if only we could spawn and delete objects and ground objects at will. If only...........?

=KG76=flyus747
Posted
20 hours ago, Sketch said:

Ground entities don't have that type of logic. They're just set dressing... Place and forget. You can not remove them in a game session.

understood, thanks for the input

  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...