Seven Towers: UCC Reference

USECODE INTRINSICS

[SI, Exult]

actor UI_get_oppressor(actor npc)
actor npc->get_oppressor()

Gets whoever is attacking the supplied NPC. This oppressor can be set through usecode, but it is also automatically set to whomever has last attacked (caused damage to) the supplied NPC. It is also set whenever an NPC acquires a new target -- this NPC will be set as its target's oppressor.

Parameters

npcThe NPC whose oppressor is desired.

Return

Returns the NPC number of the supplied NPC's oppressor, or zero if no valid NPC was supplied. The return value has the opposite sign from what you get from a get_npc_number intrinsic call.

Related intrinsics

See also