imaginary_friend 
Vars | |
| distance_allowance | Max distance we can be from our owner before we teleport to them |
|---|---|
| extended_message_range | Whether our host and other imaginary friends can hear us only when nearby or practically anywhere. |
| require_los | If TRUE, we must keep line of sight with the owner |
Procs | |
| Initialize | Arguments: |
| attach_to_owner | Links this imaginary friend to the provided mob |
| group_clients | Returns all member clients of the imaginary_group |
| setup_appearance | Copies appearance from passed player prefs, or randomises them if none are provided |
| setup_friend | Randomise friend name and appearance |
| setup_friend_from_prefs | Sets up the imaginary friend's name and look using a set of datum preferences. |
Var Details
distance_allowance 
Max distance we can be from our owner before we teleport to them
extended_message_range 
Whether our host and other imaginary friends can hear us only when nearby or practically anywhere.
require_los 
If TRUE, we must keep line of sight with the owner
Proc Details
Initialize
Arguments:
- imaginary_friend_owner - The living mob that owns the imaginary friend.
- appearance_from_prefs - If this is a valid set of prefs, the appearance of the imaginary friend is based on these prefs.
attach_to_owner
Links this imaginary friend to the provided mob
group_clients
Returns all member clients of the imaginary_group
setup_appearance
Copies appearance from passed player prefs, or randomises them if none are provided
setup_friend
Randomise friend name and appearance
setup_friend_from_prefs
Sets up the imaginary friend's name and look using a set of datum preferences.
Arguments:
- appearance_from_prefs - If this is a valid set of prefs, the appearance of the imaginary friend is based on the currently selected character in them. Otherwise, it's random.