ClearNearbyFriendActions(object, int)

Clears the actions of a creature and all nearby friends

void ClearNearbyFriendActions(
    object oTarget = OBJECT_SELF,
    int bClearCombat = FALSE
);

Parameters

oTarget

creature whose friends' actions are cleared (Default: OBJECT_SELF)

bClearCombat

stop combat as well (Default: FALSE)


Description

Clears the action queues of oTarget and the nearest 10 friendly creatures to the oTarget, useful for stopping a battle in progress.

Note that unless TRUE is passed for nClearCombat, any current fighting involving the friends will continue.

Nearby friend is defined as GetNearestCreature(CREATURE_TYPE_REPUTATION, REPUTATION_TYPE_FRIEND, oTarget).



Remarks

Include library for party-wide functions.

NOTE: this library is included in "x0_i0_common" already.
Do NOT dual-include both files or you will get errors!


Requirements

#include "X0_I0_PARTYWIDE"

Version

1.61

See Also

categories: Action on Object Functions | Combat Actions Functions | Party Functions
constants: CREATURE_TYPE_* Constants


 author: Peter Busby