User Tools

Site Tools


change_player

This is an old revision of the document!


Change Player


Swaps out the current player character with another character.

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.1639686556.txt.gz · Last modified: 2021/12/16 12:29 by justin