Jump to navigation Jump to search
void CopyFriendliness (Actor other, bool changeTarget [, bool resetHealth])
Changes the calling actor's affiliation to match that of the specified actor, which includes befriending, hating and targeting the same actors the specified actor does.
- other: a pointer to the actor to affiliate with.
- changeTarget: if true, the calling actor changes its target to match that of the specified actor, provided that this target does not have the NOTARGET and NEVERTARGET flags. Otherwise, if false, the calling actor keeps its current target, if any.
- resetHealth: if true, the calling actor's health is set back to the value it spawned with, otherwise its health remains unchanged. Default is true.
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|