Jump to content

Recommended Posts

Hello everybody,

 

My probleme is this: When I started the mission I can use Zeus, but when I respawn zeus no work ....

 

Ater searches, the problem comes from this part of script that is in the init.sqf

 

Quote

    // NAMING PLAYER (NECESSARY FOR SOME SCRIPT EXECUTION)
        if (!isDedicated) then
            {
                private ["_playerID"];
                _playerID = format ["player_%1", round (random 1000)];
                player setVehicleVarName _playerID;
                missionNamespace setVariable [_playerID, player];
                publicVariable _playerID;
                waitUntil {vehicleVarName player == _playerID};
            };

 

 

Share this post


Link to post
Share on other sites

But why would you do that?

The above segment makes almost no sense to me, as you could just give the player units a unique varname in the 3DEN editor...

Share this post


Link to post
Share on other sites

where is this being executed at? It could be just suspended until a condition is true and not initializing at all as a result. 

Share this post


Link to post
Share on other sites
23 hours ago, Mokka said:

But why would you do that?

The above segment makes almost no sense to me, as you could just give the player units a unique varname in the 3DEN editor...

why the hell would you even do that? unless this is SP, which I highly doubt it is. Then why would you go and individually name units? 

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

×