Jump to content

sentan

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by sentan

  1. _difficulty = round(random 4)+1;
    
    switch (_difficulty) do {
    	case 1 : { 
    		for "_i" from 0 to _difficulty do {
    			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
    		};
    	};
    	case 2 : {
    		for "_i" from 0 to _difficulty do {
    			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
    		};
    	};
    	case 3 : {
    		for "_i" from 0 to _difficulty do {
    			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
    		};
    	};
    	case 4 : {
    		for "_i" from 0 to _difficulty do {
    			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
    		};
    	};
    	default { 
    			[[(_position select 0) + ((random 200) - 100), (_position select 1) + ((random 200) - 100), 0],(round(random 4) + 1),"hard","Random",3,"none","GUE_Soldier_Sab","Random","Bandit"] call spawn_group;
    	};
    };
    

    My settings for group spawning.

    Random Position, random number of groups and group size.

  2. Hello,

     

    i have a problem with global variables, works so far, but after reconnect the variables are empty. Someone know what the problem is?

    init.sqf
     

    if(isServer) then {
    	[] execVM "myServerScript.sqf";
    };
    
    
    [] execVM "myClientScript.sqf";
    

    myServerScript.sqf

    my_var1 = true;
    publicVariable "my_var1";
    
    my_var2 = floor(time);
    publicVariable "my_var2";
    
    my_var3 = [	
    			[8096.875, 7824.2896,0],
    			[8241.0039, 7612.2881,0],
    			[8935.9805, 7398.7944,0]
    ] call BIS_fnc_selectRandom;
    publicVariable "my_var3";
    

    myClientScript.sqf
     

    while {true} do {
        sleep 10;
        systemchat format["%1 || %2 || %3", my_var1, my_var3, my_var3];
    };
    

    Output looks like: true || 145256352 || 8096.875, 7824.2896,0
    but after a player die and he reconnect, then it looks so: any || any || any

    Can someone help?
    I need these variables after reconnect.

    thanks

  3. Installed Build Vectors and Snap Pro after Plot Management, now i get this error, someone have an idea?
    No Objects counted, maintain didnt work.
     

    Error in expression < 
    _allowed = [_owner] +  _fuid;   
    if ( _playerUID in _allowed && _ownerID in _a>
      Error position: <_playerUID in _allowed && _ownerID in _a>
      Error Undefined variable in expression: _playeruid
    File mpmissions\__CUR_MP.Chernarus\dayz_code\fn_selfActions.sqf, line 303
    Error in expression < 
    _allowed = [_owner] +  _fuid;   
    if ( _playerUID in _allowed && _ownerID in _a>
      Error position: <_playerUID in _allowed && _ownerID in _a>
      Error Undefined variable in expression: _playeruid
    File mpmissions\__CUR_MP.Chernarus\dayz_code\fn_selfActions.sqf, line 303
    

    fn_selfactions.sqf (codeblock)

    		///Allow owners to delete modulars
    		if(_isModular && (dayz_characterID == _ownerID)) then {
    				if(_hasToolbox && "ItemCrowbar" in _itemsPlayer) then {
    					_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], DZE_PlotPole select 0];
    					_IsNearPlot = count (_findNearestPoles);
    					_fuid  = [];
    					_allowed = [];
    					if(_IsNearPlot > 0)then{
    						_thePlot = _findNearestPoles select 0;
    						_owner =  _thePlot getVariable ["ownerPUID","010"];
    						_friends = _thePlot getVariable ["plotfriends", []];
    						{
    						  _friendUID = _x select 0;
    						  _fuid  =  _fuid  + [_friendUID];
    						} forEach _friends;
    						_allowed = [_owner];    
    						_allowed = [_owner] +  _fuid;   
    						if ( _playerUID in _allowed && _ownerID in _allowed ) then {  // // If u want that the object also belongs to someone on the plotpole.
    							_player_deleteBuild = true;
    						};                  
    					}else{
    						if(_ownerID == _playerUID)then{
    							_player_deleteBuild = true;
    						};
    					};                                        
    				};
    		};
    
  4. Something is wrong after Door Management installation, someone know whats the problem is?

    client.rpt

    Error in expression <CharacterID","0"];
    
    if(dayz_characterID == _ownerID) then {  
    _canBuildOnPlot = >
      Error position: <== _ownerID) then {  
    _canBuildOnPlot = >
      Error Generic error in expression
    File mpmissions\__CUR_MP.Chernarus\addons\buildables\custom_builds.sqf, line 168
    
×
×
  • Create New...