Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
It will hunt ANY hostile AI in the radius. I was 2.2km outside of this zone and the patrol walked straight towards an AI group inside this radius
There are ways to get valid references to groups (and any other non-map objects) without variables, since there are many instances when you either don't have, or dunno the, variable names.
^ You have to use `groups west` together with a `forEach` loop (`forEach groups west`) (and `if`/`select` statement[s]) to run the `setVariable` on those West groups.
Ok, but it looks like I need a variable name. I'm running an Epoch server and was hoping there was a line of code for init.sqf that would disable the west AI when the server is booting up. Don't I need a name where it says "group"?
<group> setVariable ["lambs_danger_disableGroupAI", true];
That's exactly the wrong place to put it. Use `init.sqf`, where you use the line with a `local <group>` and another check to select groups from the side. If you also use Zeus to spawn them, you'll also need event handlers.
This looks like it would go in a units init or use a variable for a unit: <group> setVariable ["lambs_danger_disableGroupAI", true];
Is there a way to put this in initPlayerLocal.sqf to disable all west (friendly) AI?
https://github.com/nk3nny/LambsDanger/wiki/variables#lambs-danger-fsm---unit-and-group-variables