Page MenuHomeFeedback Tracker

addAction doesn't work on animals anymore
Closed, ResolvedPublic

Description

Actions added via addAction don't show up on animals anymore, unlike in ArmA 2.

Since it's only a minor concern, the main question is if it's intentional or not.

Details

Legacy ID
1180871521
Severity
Feature
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

In the editor:

  1. Place a player unit.
  2. Place a rabbit.
  3. In the rabbit's init box put "this addAction ["Action", "dummy.sqf"];"
  4. Preview and note that you cannot get the action to show up, unlike in ArmA 2.
Additional Information

Tonic-_- provided a workaround utilizing cursorTarget as the condition and attaching the action to the player:

http://forums.bistudio.com/showthread.php?152875-addAction-doesn-t-work-on-animals-anymore&p=2370559&viewfull=1#post2370559

Event Timeline

MagirotV edited Additional Information. (Show Details)
MagirotV set Category to Scripting.
MagirotV set Reproducibility to Always.
MagirotV set Severity to Feature.
MagirotV set Resolution to No Bug.
MagirotV set Legacy ID to 1180871521.May 7 2016, 1:40 PM
F2kSel added a subscriber: F2kSel.May 7 2016, 1:40 PM

Yes I noticed this also when trying to use some dogs.

This is intentional change. Simulation of animals was simplified and all redundant parts were removed. It is part of optimization of the game, this helps to get better performance.