FutureProg functions
setnpccompanion
setnpccompanion overload 1
Boolean setnpccompanion(Character character, Character target)
Available in
- computer function
- computer program
- standard futureprog
Assigns a colocated living player as the NPC's companion using the existing bodyguard logout lifecycle. Null releases it. Does not grant combat duties, ownership or riding permission.
| Parameter | Type | Description |
|---|---|---|
character |
Character |
The character to change (an NPC for companion assignment). |
target |
Character |
The character to follow or accompany; null clears the relationship. |