Search the Community
Showing results for tags 'ai spawn'.
Found 1 result
Hey guys, I am working on a script to spawn groups of AI around a marker. I am executing the script only on the server and the AI is spawning but not shooting even though that they are reacting to the player. They have ammo and their behaviour changes to Combat. I did some testing and found out if the script is executed on the client the AI shoots on the player, but only the AI which got spawned by the player. So each AI is shooting a different player. This also overflows the objective with AI because every player spawns a new group. As far as I know the "brain" of the AI is the computer which spawned it. Is it possible that a server setting is wrong? I am also using 3 headless clients. This is my code: That's how I call the script: [[[_mainobjective],"scripts\mainobjectives\setUpBigTown.sqf"],"BIS_fnc_execVM",false] call BIS_fnc_MP; Spawning the group: _pos = [getMarkerPos (markers select _mainobjective), 0, 400, 1, 0, 1, 0] call BIS_fnc_findSafePos; _grp = [_pos, AIHQ, 5] call BIS_fnc_spawnGroup; _grp setBehaviour "SAFE"; Does anyone have an idea why the AI is not shooting? or how to fix that? Trying to fix that issue for days now and were not able to find any other post. Excuse me if I overlooked any post. Thank you guys in advance for any reply.