Jump to content

Recommended Posts

Hello !

 

I've created a script with the "SetOwner" command. I know it can be only executed on the server, so I used remoteExecCall to call it.The call works, the file is called and it said a thing in my log (diag_log command to test). So the file is called, but objects remain remote :(

 

My file :

private ["_obj", "_toOwn"];
_obj = _this select 0;
_toOwn = _this select 1;
_toOwn setOwner (owner _obj);

diag_log "Called";

How I called it :

[_obj, _toOwn] remoteExecCall ["Server_fnc_Own", 2];

In my log I have : Called, but the object remains REMOTE.

How can I own the object ?

 

Thanks a lot !

Share this post


Link to post
Share on other sites

_obj is some non-AI object and _toOwn is a player object?

Share this post


Link to post
Share on other sites

@kylania

Yes, _obj is a vehicle, I've entered in it, so the vehicle is local, but _toOwn is a vehicle which is remote

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

×