Page MenuHomeFeedback Tracker

"BIS_fnc_animalBehaviour_disable" broken?
Closed, ResolvedPublic

Description

I seem to have a hard time figuring out why most of my scripts using animal agents and the "BIS_fnc_animalBehaviour_disable" variable aren't working any more.

They refuse to follow any setDestination or moveTo commands, no matter if issued from .sqf or .fsm, when spawning them and immediately disabling the animalBehaviour they just stand there, ignoring all movement commands.

Details

Legacy ID
4037801202
Severity
None
Resolution
Duplicate
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Place player on map in editor, then execute this via debug console:

_animal = createagent ["Goat_random_f", getposatl player, [], 0, "NONE"];
_animal setVariable ["BIS_fnc_animalBehaviour_disable", true];

_cry = _animal spawn {

		while {alive _this} do {

	      _this moveto getposatl player;
	      hint "moveTo";
	      sleep 5;

	      _this setDestination [getposatl player, "LEADER PLANNED", true];
	      hint "setDestination";
	      sleep 5;

	  };

};

Additional Information

Even creating the animal as unit instead of an agent doesn't lead to different results. Disabling the animalBehaviour doesn't do anything to help gain control over the animals.

Event Timeline

GrumpyOldMan edited Additional Information. (Show Details)
GrumpyOldMan set Category to Scripting.
GrumpyOldMan set Reproducibility to Always.
GrumpyOldMan set Severity to None.
GrumpyOldMan set Resolution to Duplicate.
GrumpyOldMan set Legacy ID to 4037801202.May 8 2016, 12:19 PM
This comment was removed by diehardfc.