Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 2.38 KB | None | 0 0
  1. /*
  2.     File: fn_setupActions.sqf
  3.     Author:
  4.  
  5.     Description:
  6.     Master addAction file handler for all client-based actions.
  7. */
  8. switch (playerSide) do {
  9.     case civilian: {
  10.         //Présenter son passeport  
  11.         life_actions = life_actions + [player addAction["<t color='#00FF00'>Présenter son passeport</t>",life_fnc_civShowLicense,"",1,false,true,"",' playerSide == civilian && !isNull cursorTarget && cursorTarget isKindOf "Man" ']];  
  12.         //placables
  13.         life_actions pushBack (player addAction["<t color='#ADFF2F'>Objet placable</t>",life_fnc_placeablesMenu,"",0,FALSE,FALSE,"",'"vehicle player == player" && (localize "STR_License_Dep")']);
  14.     };
  15.    
  16.     case west:  
  17.     {  
  18.         //Call backup  
  19.         life_actions pushBack (player addAction["<t color='#ADFF2F'>Demande de renforts</t>",life_fnc_callbackup,"",0,FALSE,FALSE,""]);
  20.         //Placeables
  21.         life_actions pushBack (player addAction["<t color='#ADFF2F'>Objet placable</t>",life_fnc_placeablesMenu,"",0,FALSE,FALSE,"","vehicle player == player"]); // hors du véhicule
  22.         //Présenter son insigne
  23.         life_actions = life_actions + [player addAction["<t color='#1F80C9'>Présenter son insigne</t>",life_fnc_copShowLicense,"",1,false,true,"",' playerSide == west && !isNull cursorTarget && cursorTarget isKindOf "Man" ']];    
  24.         //entrer dans un vehicule meme verouillé  
  25.         life_actions = life_actions + [player addAction["<t color='#2f45ff'>Monter en conducteur</t>",life_fnc_copEnter,"driver",200,false,false,"",'!isNull cursorTarget && ((cursorTarget isKindOf "Car")||(cursorTarget isKindOf "Air")||(cursorTarget isKindOf "Ship")) && (locked cursorTarget) != 0 && cursorTarget distance player < 5']];  
  26.         life_actions = life_actions + [player addAction["<t color='#2f45ff'>Monter en passager</t>",life_fnc_copEnter,"passenger",100,false,false,"",'!isNull cursorTarget && ((cursorTarget isKindOf "Car")||(cursorTarget isKindOf "Air")||(cursorTarget isKindOf "Ship")) && (locked cursorTarget) != 0 && cursorTarget distance player < 5']];  
  27.         life_actions = life_actions + [player addAction["<t color='#ff2f45'>Descendre</t>",life_fnc_copEnter,"exit",100,false,false,"",'(vehicle player != player) && (locked(vehicle player)==2)']];  
  28.     };
  29.    
  30.     case independent:
  31.     {
  32.         //placables
  33.         life_actions pushBack (player addAction["<t color='#ADFF2F'>Objet placable</t>",life_fnc_placeablesMenu,"",0,FALSE,FALSE,"","vehicle player == player"]); // hors du véhicule
  34.     };
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement