User Tools

Site Tools


change_player

This is an old revision of the document!


Change Player


Swaps out the current player character for another character. The other character can be provided as a model name, a party member, or an NPC that exists within the current map.

Signature:

change_player(character)
ArgumentDescriptionTypeRequired
characterThe entity to remove from the map.EntityYes

Example:

change_player(entity["key_01"]);

Results: The entity with an ID of “key_01” is permanently removed from the map.

Use the Remove Entity function to remove characters that have exited during a cutscene or as a way for the player to “collect” objects from the scene (i.e. item pickups).


Editor Node:

Visual Demo:

change_player.1639686672.txt.gz · Last modified: 2021/12/16 12:31 by justin