Jump to content

Recommended Posts

Hi, Im making an Arma 3 roleplay server and every time i disconnect when i connect again i spawn at the worlds spawn point and i want to spawn where i was when i disconected, can anyone help me?

Share this post


Link to post
Share on other sites

Hello and welcome.

 

you need this:

1 HandleDisconnect -> https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#HandleDisconnect

2 getPosASL player -> https://community.bistudio.com/wiki/getPosASL

 

3 a database where you save the position

I recommend you @INIDBI2 -> http://www.armaholic.com/page.php?id=29823

alternatively to make it easier profileNamespace -> https://community.bistudio.com/wiki/profileNamespace

 

4 initPlayerLocal.sqf > player setPosASL [X,Y,Z]

  • Thanks 1

Share this post


Link to post
Share on other sites
On 2/17/2020 at 2:38 PM, LoOni3r said:

Hello and welcome.

 

you need this:

1 HandleDisconnect -> https://community.bistudio.com/wiki/Arma_3:_Event_Handlers/addMissionEventHandler#HandleDisconnect

2 getPosASL player -> https://community.bistudio.com/wiki/getPosASL

 

3 a database where you save the position

I recommend you @INIDBI2 -> http://www.armaholic.com/page.php?id=29823

alternatively to make it easier profileNamespace -> https://community.bistudio.com/wiki/profileNamespace

 

4 initPlayerLocal.sqf > player setPosASL [X,Y,Z]

@LoOni3r Hi and thanks for the help, i managed to get the database to save the last position as you can see https://gyazo.com/7530546789f95ecdc4a8cf236f387947 but it wont let spawn at these coords when enter the server again, what should i do¿? 
Thank you in advance for your reply.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×