Disabling "Spawn AI: Spawnpoint" module

Where Mission Engineer Comrades and the FA Mission Making Template lived
Post Reply
User avatar
SuicideKing
Posts: 249
Joined: Wed Nov 27, 2013 1:29 pm
Location: India/Netherlands
Contact:

Disabling "Spawn AI: Spawnpoint" module

Post by SuicideKing » Mon Aug 17, 2015 11:14 pm

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).
FIST, SHARK, FLAME, BURST, BONZO, WILDCAT, GRIZZLY, DUKE, DEMON :v:

Post Reply