Page 1 of 1

[Command] getCompanion

Posted: Mon Nov 01, 2021 9:24 pm
by Raddeck
getCompanion()


USE:
Get the current companion.
Not entirely necessary as the current companion has a special variable "CurrentCompanion" that is always available.


TYPE: Command, non-Ref
RETURNS: Actor
THEME: Companions
COMPARE: isWithCompanion


EXAMPLE:

Code: Select all

    Actor = getCompanion()
    Actor.dress()
    
    // is the same as
    
    CurrentCompanion.dress()