Jump to content
stormoffires

Sector Control and AI spawn?

Recommended Posts

So using in editor modules I am able to spawn AI and have them begin fighting over sectors. What i need help with is trying to figure out how to make a switch when sectors change hands.

 

so Alpha is unowned = nothing happening

Alpha is blufor controlled = spawn blufor AI

Alpha is opfor controlled = spawn opfor AI

 

currently using triggers synced from sector to AI spawn i can tell it to start spawning when blufor takes over but i can not seem to get it to stop when opfor takes over. 

Share this post


Link to post
Share on other sites

best i can tell is i need to use the sector expression field with something like

 

if (_this select 1 isEqualTo west) then NameOfSpawnAIModule

Share this post


Link to post
Share on other sites

Put an unlock gamelogic between the sector and trigger.

Sector > unlock > trigger( blufor present repeatable ) > AIspawn( Blufor )

So the AIspawn will only spawn blufor whilst the sector is owned by Blufor.

  • Like 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

×