Page MenuHomeFeedback Tracker

moveTo doesn't work for agent local to dedicated server (break BIS_fnc_animalBehaviour)
New, NormalPublic

Description

moveTo doesn't work for agent local to dedicated server. This break https://community.bistudio.com/wiki/BIS_fnc_animalBehaviour as it rely on low-level commands such as moveTo or setDestination.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
AI Issues
Steps To Reproduce
t = createAgent ["Goat_random_F", getPos (allplayers # 0), [], 0, "CAN_COLLIDE"];

Exec player side: the goat follow the animal behaviour
Exec server side: the goat just walk straight to the North

Additional Information

The issue come from moveTo because:

t = createAgent ["Goat_random_F", getpos (allplayers # 0), [], 0, "CAN_COLLIDE"];
t setVariable ["BIS_fnc_animalBehaviour_disable", true];
[] spawn {
	sleep 5;
	t moveTo getPos (allPlayers#0);
};

Exec player side: the goat move to player
Exec server side: the goat just walk straight to the North


Event Timeline

Vdauphin created this task.Dec 8 2020, 3:21 PM
Vdauphin edited Steps To Reproduce. (Show Details)
Vdauphin edited Steps To Reproduce. (Show Details)
Vdauphin edited Additional Information. (Show Details)Dec 8 2020, 3:43 PM

is it always straight north? my observation is in a herd of multiple animals they disperse in a star pattern in all directions, straight without ever turning.

is it always straight north?

createAgent create an agent facing the North direction. May be if you set an other direction after creation, the animal will only move in that new direction

ok yes, i setdir random 360. makes sense.