Jump to content
Nutzgo

BIS_fnc_initINtelObject not working on server

Recommended Posts

Hi
I have an intel based on https://community.bistudio.com/wiki/BIS_fnc_initIntelObject

Works perfectly, until launched on the server.

Now nothing happens at all, nothing from the scripted events will fire. 
How to make this happen on all clients?

 

Quote

[bridgeintel] call BIS_fnc_initIntelObject;  
  
if (isServer) then {  
   
 this setVariable [  
  "RscAttributeDiaryRecord_texture",  
  "pictures\mapintel.jpg",  
  true  
 ];  
   
 [  
  this,  
  "RscAttributeDiaryRecord",  
  ["Check intel!","Check out these locations"]  
 ] call BIS_fnc_setServerVariable;  
   
 this setVariable ["recipients", west, true];  
 
 this setVariable ["RscAttributeOwners", [west], true];  
 
 [ 
         this, 
         "IntelObjectFound", 
         { 
   if (side player == west) then { 
         "WEST_Brua" setMarkerTextLocal  "Bridge!"; 
         "WEST_Brua" setMarkerTypeLocal "mil_Warning"; 
         "WEST_Brua" setMarkerColorLocal "ColorBLUFOR"; 
         createMarkerLocal ["WEST_House",[8148.47,8740.92,7.50359]]; 
         "WEST_House" setMarkerTypeLocal "mil_Unknown"; 
         "WEST_House" setMarkerTextLocal "House?"; 
         "WEST_House" setMarkerColorLocal "ColorOPFOR"; 
         createMarkerLocal ["WEST_Penger",[6427.32,8165.93,0]]; 
         "WEST_Penger" setMarkerTypeLocal "mil_Unknown"; 
         "WEST_Penger" setMarkerTextLocal "Penger?"; 
         "WEST_Penger" setMarkerColorLocal "ColorOPFOR"; 
   } else { 
   "EAST_Brua" setMarkerColorLocal "ColorBLUFOR"; 
   }; 
         deleteVehicle respawn_ind_4; 
         deleteVehicle respawn_ind_5; 
         deleteVehicle respawn_ind_6; 
         [west, [10988.3,11249.1,0], "Respawn Bridge"] call BIS_fnc_addRespawnPosition; 
 
         [west, "HQ"] sideChat "Good job!"; 
         [east, "HQ"] sideChat "Shit, pull back!";  
     }  
     ] call BIS_fnc_addScriptedEventHandler; 
 
  
}; 
 

 

Share this post


Link to post
Share on other sites

When launched in LAN, it creates the markers, delete the respawns for OpFor, and deletes the respawn for BluFor, and each side gets a sideChat msg from HQ. 

But, when uploaded to our rented server, the only thing that happens is that the map opens, the intel appears in the Diary - but nothing more. 

Share this post


Link to post
Share on other sites

Solved this with taking the code in quote, and placing it in a seperate trigger. 
Condition on trigger: 
!alive (name of intel)

On Activation, code in quote. Worked perfectly.

Quote

if (side player == west) then { 
         "WEST_Brua" setMarkerTextLocal  "Bridge!"; 
         "WEST_Brua" setMarkerTypeLocal "mil_Warning"; 
         "WEST_Brua" setMarkerColorLocal "ColorBLUFOR"; 
         createMarkerLocal ["WEST_House",[8148.47,8740.92,7.50359]]; 
         "WEST_House" setMarkerTypeLocal "mil_Unknown"; 
         "WEST_House" setMarkerTextLocal "House?"; 
         "WEST_House" setMarkerColorLocal "ColorOPFOR"; 
         createMarkerLocal ["WEST_Penger",[6427.32,8165.93,0]]; 
         "WEST_Penger" setMarkerTypeLocal "mil_Unknown"; 
         "WEST_Penger" setMarkerTextLocal "Penger?"; 
         "WEST_Penger" setMarkerColorLocal "ColorOPFOR"; 
   } else { 
   "EAST_Brua" setMarkerColorLocal "ColorBLUFOR"; 
   }; 
         deleteVehicle respawn_ind_4; 
         deleteVehicle respawn_ind_5; 
         deleteVehicle respawn_ind_6; 
         [west, [10988.3,11249.1,0], "Respawn Bridge"] call BIS_fnc_addRespawnPosition; 
 
         [west, "HQ"] sideChat "Good job!"; 
         [east, "HQ"] sideChat "Shit, pull back!";  

 

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

×