AnimActionStartInteracting(object)

Start interacting with a placeable object.

void AnimActionStartInteracting(
    object oPlaceable
);

Parameters

oPlaceable

The object to interact with.

Description

Start interacting with a placeable object.



Remarks

oPlaceable must be a valid object. There is no internal testing in this function to validate it.

If the creature has either NW_ANIM_FLAG_IS_MOBILE or NW_ANIM_FLAG_IS_MOBILE_CLOSE_RANGE set as animation conditions then ActionMoveToObject is used to walk the creature to oPlaceable. The fRange distance parameter is set to DISTANCE_TINY (1.0).

The creature will face the placeable and use AnimActionPlayRandomInteractAnimation to interact with it.

Call AnimActionStopInteracting to stop interacting with the placeable.


Requirements

#include "x0_i0_anims"


Version

???

See Also

functions:  ActionMoveToObject | AnimActionPlayRandomInteractAnimation | AnimActionStopInteracting | GetAnimationCondition | SetAnimationCondition
constants:  DISTANCE_*
categories:  Animation Functions


author: Baragg, editor: Mistress