Page 1 of 1

[Condition] isTemporary

Posted: Sat Nov 13, 2021 3:10 pm
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