Page MenuHomeFeedback Tracker

Placed(Spawned) animals work bad if mission launched on Dedicated Server (+ tweak request)
New, NormalPublic

Description

1. Animal behavior in Arma 3 is triggered by using:

CfgTasks → AnimalMainTask
It calls BIS_fnc_animalBehaviour on each agent animal. It success if singleplayer but multiplayer will not execute function on animal.
There are two features in this function: removal of the animal that got into the water; sound for goats, chickens.

Following the above, we can check that the function has failed execution on animals in the MP by simply moving them into the water or listening near them (goats, chickens - sound every 5 sec).

Another proof would be another way to execute the function on animals, such as the Event Handler “postInit”
If make mod with next code the animal will work as designed in multiplayer:

2. Also this ticket requests adding sound support for Dogs and Sheeps

Please see \A3\Functions_F\Ambient\fn_animalBehaviour.sqf lines from 447
when function was created only goats and chickens was in game, but now in game data there dogs and sheeps sounds, it would be great if they made sounds too. Take a look at these two code blocks:

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Operating System Version
23H2
Category
Scripting
Steps To Reproduce

  1. download and launch repro mission in Singleplayer
  2. left goat on the ground; right in the water ← one will deleted it's ok behaviuor
  3. launch this repro mission in Multiplayer
  4. the right goat will stay in water, so function was not executed for animals
  5. execute [cursorObject] call BIS_fnc_animalBehaviour; on goat in water, after goat will deleted as should
  6. execute [cursorObject] call BIS_fnc_animalBehaviour; on goat on ground, after goat will make sounds as should

Event Timeline

TRAGER created this task.Sep 11 2023, 11:55 AM
This comment was removed by TRAGER.
TRAGER renamed this task from BIS_fnc_animalBehaviour: tweak request - dog and sheep sound support to Placed(Spawned) animals work bad if mission launched on Dedicated Server (+ tweak request).Mar 3 2024, 1:34 PM
TRAGER updated the task description. (Show Details)
TRAGER changed Severity from Tweak to Minor.
TRAGER edited Steps To Reproduce. (Show Details)
TRAGER edited Additional Information. (Show Details)
TRAGER set Operating System Version to 22H2.
TRAGER added a comment.EditedOct 23 2024, 4:13 PM

Now I think the miss of variables is not a bug but just must not be publichet over net is ok
However, you can make sure that the function does not work by the following parts of the function that do not work:

  1. A land animal will not be lost if it falls into water
  2. The animal will not make a sound
  3. the animal will not react to danger as it would in a single player game

and more…

Having verified that the above points are true, I can judge that the

  1. BIS_fnc_animalBehaviour does not work in multiplayer game

or / and

  1. \a3\animals_f\data\scripts\main.fsm does not work in multiplayer game

or / and

  1. CfgTasks→AnimalMainTask does not work in multiplayer game

upd ------→ workaround is execution on animals function manually

TRAGER updated the task description. (Show Details)Oct 28 2024, 3:09 PM
TRAGER edited Steps To Reproduce. (Show Details)
TRAGER edited Additional Information. (Show Details)
TRAGER changed Operating System Version from 22H2 to 23H2.