[Condition] isTemporary

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 »

Actor.isTemporary()


USE:
Check if this actor is temporary and to be removed as soon as this scene finishes / the player moves from this location.
Used with makePermanent()


TYPE: Condition, Reference
RETURNS: /
THEME: Actor Creation
COMPARE: makePermanent


EXAMPLE:

Code: Select all

WHO: Actor = getTarget(); If !Actor.isTemporary() && WHERE == home && !Actor.isCreature() && !Actor.isNaked()

// or

If Actor.isTemporary()
    Actor.makePermanent()
    exchangeContact(Actor)                            
Endif
Last edited by Raddeck on Wed Jun 15, 2022 10:43 pm, edited 1 time in total.
Reason: Added 1 example
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