[Command] addToPeopleHere
Posted: Tue Oct 26, 2021 10:22 pm
Actor.addToPeopleHere()
USE:
Adds the given actor to those that shall be at the current location.
Used for allowing an actor called in during a scene to stay around your current location even after the scene finishes
BACKGROUND:
All actors that should not be at the current location (NPCs based on their AI schedule or MC/companion/creature) will be removed at the end of a scene.
To prevent that you will have to call this function on the actor that you want to stay in the scene.
TYPE: Command, Non-Ref
RETURNS: /
THEME: Actors
COMPARE:
EXAMPLE:
USE:
Adds the given actor to those that shall be at the current location.
Used for allowing an actor called in during a scene to stay around your current location even after the scene finishes
BACKGROUND:
All actors that should not be at the current location (NPCs based on their AI schedule or MC/companion/creature) will be removed at the end of a scene.
To prevent that you will have to call this function on the actor that you want to stay in the scene.
TYPE: Command, Non-Ref
RETURNS: /
THEME: Actors
COMPARE:
EXAMPLE:
Code: Select all
Actor = generatePersonTemporary()
Actor.show()
Actor.addToPeopleHere() // Will stay in the location after the scene ends...