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 character to swap the current player character with.String, EntityYes

Example:

change_player(party.member["Sarah"]);

Results: The party member with the ID of “Sarah” will now be the main player character.

Use the Change Player function from a dialogue or custom widget to allow the player to switch between members of their party.


Editor Node:

Visual Demo:

change_player.1639687704.txt.gz · Last modified: 2021/12/16 12:48 by justin