Disabling "Spawn AI: Spawnpoint" module

Workshop for all Mission Engineer Comrades. Home of the FA Mission Making Template.
Post Reply
User avatar
SuicideKing
Host
Posts: 312
Joined: Wed Nov 27, 2013 1:29 pm
Location: India/US West
Contact:

Disabling "Spawn AI: Spawnpoint" module

Post by SuicideKing »

Hey, so I've been experimenting with stuff. :science101:

I have BLUFOR and OPFOR. There is a Sector to be taken. OPFOR is AI. I would like to disable the OPFOR spawn when BLUFOR takes the sector. If BLUFOR is not in the sector, OPFOR's spawn remains active.

In the "Expression" field of the Sector module, I put in:

Code: Select all

if ((_this select 1) == west) then {CSATspawn enableSimulation false}
where CSATspawn is the name of the Spawn AI: Spawnpoint module instance i put down. I found this code here.

I've also tried syncing CSATspawn to a trigger with the condition:

Code: Select all

((secA select 1) != west)
where secA is the name of the Sector.

Neither work. :?

What should I do? I'm not using F3 yet for anything.

(I've also googled this, no solutions).
themiddlevoid.wordpress.com

Post Reply