Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.40 KB | None | 0 0
  1. #include "basicdefines_A3.hpp"
  2. #include "cfgPatches.hpp"
  3.  
  4. class CfgVehicles
  5. {
  6.     class House;
  7.     class House_F: House
  8.     {
  9.         class DestructionEffects;
  10.     };
  11.  
  12.     class ALF_Concess_Civil : House_F
  13.     {
  14.         scope = 2;
  15.         displayName = "ALF_Concessionnaire_Civil";
  16.         model = \ALF_ConcessCivil\Concessionnaire.p3d;
  17.  
  18.         mapSize = 20.27;
  19.         vehicleClass = Structures;
  20.         cost = 0;
  21.  
  22.         class AnimationSources
  23.         {
  24.             class Portes_source
  25.             {
  26.                 source = user;
  27.                 initPhase = 0;
  28.                 animPeriod = 1;
  29.                 sound = "GenericDoorsSound";
  30.                 soundPosition = "Porte_actionPoint";
  31.             };
  32.         };
  33.  
  34.         class UserActions
  35.         {
  36.             class Ouvrir_Porte
  37.             {
  38.                 displayNameDefault = "<img image='\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa' size='2.5' />";
  39.                 displayName = "Ouvrir";
  40.                 position = Porte_actionPoint;
  41.                 priority = 0.4;
  42.                 radius = 100;
  43.                 onlyForPlayer = 1;
  44.                 condition="this animationPhase ""Portes_source"" < 0.5";
  45.                 statement="this animate[""Portes_source"",1]";
  46.             };
  47.  
  48.             class Fermer_Porte
  49.             {
  50.                 displayNameDefault = "<img image='\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa' size='2.5' />";
  51.                 displayName = "Fermer";
  52.                 position = Porte_actionPoint;
  53.                 priority = 0.4;
  54.                 radius = 100;
  55.                 onlyForPlayer = 1;
  56.                 condition="this animationPhase ""Portes_source"" >= 0.5";
  57.                 statement="this animate[""Portes_source"",0]";
  58.             };
  59.         };
  60.     };
  61. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement