This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
change_player [2021/12/16 12:32] – justin | change_player [2021/12/16 19:12] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Swaps out the current [[player character]] for another [[character]]. The other [[character]] can be provided as a model name, a [[add_party_member|party member]], or an [[NPC]] that exists within the current [[map]]. | + | Swaps out the current [[player character]] for another [[character]]. The other [[character]] can be provided as a [[add_party_member|party member]] or an [[NPC]] that exists within the current [[map]]. |
====Signature: | ====Signature: | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |character|The [[entity]] to remove from the [[map]].|[[Entity]]|Yes| | + | |character|The [[character]] to swap the current |
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | change_player(entity["key_01"]); | + | change_player(party.member["Sarah"]); |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Remove Entity** function | + | Use the **Change Player** function |
</ | </ | ||