nanos-world / nanos-world-sandbox

nanos world official Sandbox gamemode
MIT License
11 stars 5 forks source link

Expose SpawnPlayer and UpdateLocalCharacter to other packages #5

Closed Xalalau closed 3 years ago

Xalalau commented 3 years ago

So we can remove the current character and create a new one fully customized and connected to the Sandbox (HUD, messages, events...)

E.g. my "kill" module needs it to allow players to correctly respawn ahead of time (leaving the dead body behind) https://github.com/Xalalau/SublimeBase/blob/dad9c23d58bf8d724789d61b5b9a86fec9d7178a/Server/kill/kill.lua#L15 https://github.com/Xalalau/SublimeBase/blob/7e7a72c692febaa96b7df7a249efbd8df423e07f/Client/kill/kill.lua#L26

gtnardy commented 3 years ago

Good idea!