Search the Community
Showing results for tags 'BIS_fnc_spawnGroup'.
Found 3 results
Hey, I went through the search results worth of four pages that had somekind of mention about BIS_fnc_spawnGroup but couldn't find anything that would directly fit the problem I'm having. I'm trying to use [getMarkerPos "test3", side player, 10] remoteExecCall ["BIS_fnc_spawnGroup",(_this select 1),false] which spawns an AI squad (of the same side as the human player is) when a human player captures the sector. I've placed that code snippet in the Expression field of a BIS sector and while the code works nicely when testing through a editor hosted multiplayer it doesn't spawn anything when testing the mission in a dedicated server environment. What I might be missing here? Is there any way I could keep using the Expression field to execute what I want in dedicated server or should I use something else (what might that be then)? Greetings Asmodeuz
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.
Simple Question how do I spawn a group at a certain height using BIS_fnc_spawnGroup at a marker? This is what I have (with the group actually defined) _group1 = [(getMarkerPos "marker1"), EAST, (configfile >> so on and so forth until we get the group)] Call BIS_fnc_spawnGroup; I would like to spawn them at 5 meters height. Thank you