Seven Towers: UCC Reference

USECODE INTRINSICS

UI_set_opponent(actor npc, object obj)
npc->set_opponent(object obj)

Makes the supplied NPC target the desired object. This does not make the NPC attack unless his schedule is IN_COMBAT. This intrinsic will reevaluate if the NPC's oppressor is actually attacking him, and will invalidate the oppressor if not.

Parameters

npcThe NPC whose opponent we wish to set.
objWhat the target should be set to. If the target is an NPC, his/her oppressor will be set to the attacking NPC.

Related intrinsics

See also