[Command] getCompanion

Post Reply
User avatar
Raddeck
LP Manager
Reactions: 1
Posts: 508
Joined: Sat Oct 16, 2021 6:22 pm
Location: LpWorld
Contact:

Post 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()
Like my work? Buy me a coffee or support me on Patreon to keep it coming. :ugeek:
-Don't PM me for support-
Top
Post Reply