Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#178721 Posted at 2015-04-12 07:23        
     
I have this simple script I am working on to use as an even on a server

In the simplest form I want to spawn a satellite phone on the ground add action to it make it display a hint or play some music.

This works fine for me locally but other players can't see the addaction

null = [] spawn { 
 laptop = createVehicle ["Land_SatellitePhone_F", player modelToWorld [0,5,0], [], 0, "NONE"];
   [laptop,"ASY_fnc_setIdleTime",false,false] spawn BIS_fnc_MP;
      


hack1 = laptop addAction ["<t color='#FF0000'>Hack the Satellite Transmission</t>", 
           
      {       laptop removeAction hack1;

sleep 5; 
playmusic "LeadTrack02_F_Mark";      
Hint "* Gained Access * Collecting Data";
  "    *****TOP SECRET INTEL*****" HintC ["1","1","1"];
      }]; 
[{hack1},"BIS_fnc_spawn",true,true] spawn BIS_fnc_MP;
}


Its probably something very simple but I tried reading about it on this forum and tried to copy but I am very good at scripting, can't understand.