Jump to content
Sign in to follow this  
FinCommando

Spawning AI to mission with delay.

Recommended Posts

Hello, I've been looking for a script/init that would spawn placed AI units on mission with delay. The reason is that I've been working on mission there whole chernogorks is ruined. And I had to use some explosions to make some buildings look damaged. So, I want to spawn units after the explosions. OR if there is a way to make buildings destroyed/only damaged before the mission starts it would be really nice.

Thanks for reading!

Share this post


Link to post
Share on other sites

Are you using a script for destroying the building? If so then in the mission init.sqf(if you have one, if not then create init.sqf) just use the BIS_fnc_spawnGroup after the code is called to destroy the buildings. Other wise group a building with a trigger and in the activation put vehicle not present then call BIS_fnc_spawnGroup is the easiest way.

Share this post


Link to post
Share on other sites
Are you using a script for destroying the building? If so then in the mission init.sqf(if you have one, if not then create init.sqf) just use the BIS_fnc_spawnGroup after the code is called to destroy the buildings. Other wise group a building with a trigger and in the activation put vehicle not present then call BIS_fnc_spawnGroup is the easiest way.

Ok, I'll try that. Thanks for quick answer. And I'm using triggers with activation field "thislist select 0 setdamage 1" grouped to buildings.

Share this post


Link to post
Share on other sites

Yeah I'd just use the spawnGroup function then, if you need the group to perform actions after they're spawned it would be easier to script it it than to call it from the trigger as scripting commands in the trigger tend to get frustrating.

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  

×