Jump to content
alleycat

If I want to make a player ZEUS by UID, what do I have to type in in the owner field? the number, or the number with "?

Recommended Posts

If I want to make a player ZEUS by UID, what do I have to type in in the owner field? the number, or the number with "?

Share this post


Link to post
Share on other sites

Name the game master module, then in an external script that is ran through through the iniPlayerLocal, get and check the player UID, then use the assignCurator command.

Share this post


Link to post
Share on other sites

If I want to make a player ZEUS by UID, what do I have to type in in the owner field? the number, or the number with "?

 

Owner: #number, #number2, #number3

Share this post


Link to post
Share on other sites

Owner: #number, #number2, #number3

Thats going to confuse him.

 

You need to have the guy you want as zeus get his player id from his profile ingame, then give it to you. enter that number into owner slot, done.

Share this post


Link to post
Share on other sites

Ok so just the number like this:

5645645645646456

and not

"5645645645646456"

or is it

#5645645645646456

Which is the correct option

Share this post


Link to post
Share on other sites

Ok so just the number like this:

5645645645646456

and not

"5645645645646456"

or is it

#5645645645646456

Which is the correct option

 

You can try all of that but I doubt any of the above will work, because assignCurator (which I assume is the command used to initialize the zeus module) only takes type:OBJECT as input.

 

I would just do something like this:
 
1. In the editor, name your zeus module, something like: CuratorObj
 
2. Define a function that allows you to assign on the fly a player as zeus by UID. Note: this only works when executed on server. (Put this in initServer.sqf or init.sqf)
fnc_assignCuratorByUID = {
	params ["_uid", "_curatorObj"];	//_uid param should be type STRING; 

	{
		if ((getPlayerUID _x) == _uid) exitWith {_x assignCurator _curatorObj};
	} forEach playableUnits;

};
 
3. Execute the function like this. Note that this command only takes effect when execute on server so there is no point in executing it on clients. (You could put it into initServer.sqf, or into init.sqf with an "if isServer then {}" check.)
["5645645645646456", CuratorObj] call fnc_assignCuratorByUID;

Share this post


Link to post
Share on other sites

 

 

You can try all of that but I doubt any of the above will work

 

 

*facepalm*

 

Nonsense.

 

no number sign in front of it or anything else.

 

SIMPLY the number itself will suffice to solve this issue... if your using the in editor module 

Share this post


Link to post
Share on other sites

Ok so just the number like this:

5645645645646456

When using the module it is like this.

Why did everyone have to make it so much more difficult to answer?

Share this post


Link to post
Share on other sites

Also keep in mind if you do it via UID it will not work in a single player environment.

It will work on any form of multiplayer however.

EG: Dedicated or self hosted will work.

If you used #adminLogged it's the host on self hosted.

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

×