UCC Reference

UI_set_alignment

UI_set_alignment(actor npc, int align)
npc->set_alignment(int align)

Sets an NPC's attitude towards the avatar. This change forces the NPC to reevaluate his targets, and may stop the NPC from fleeing.

Parameters

Parameter / value Description
npc The NPC to be adjusted.
align The new attitude towards the avatar. Can be any of the return values of get_alignment intrinsic.

Related intrinsics

Full intrinsic reference | Reference definitions