User Tools

Site Tools


modding:function:plychangeship

Discuss this page on this page's Talk Page

plyChangeShip

See plyChangeShip at Xelerus

Syntax (plyChangeShip player target) → True/Nil
Arguments player: The player. (See gPlayer)
target: The target ship to transfer to.
Returns True or Nil depending on success of transfer
Category spaceobject, player
Description This function allows you to switch the playership. You have to take care of transferring items yourself.

Note

All data set by objSetData is cleared from the target ship. The original player ship's data is moved to the new ship, and the prior player ship's data is also cleared.

Return to Functions list

modding/function/plychangeship.txt · Last modified: 2017/03/18 23:05 by xephyr