Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "basicdefines_A3.hpp"
- #include "cfgPatches.hpp"
- class CfgVehicles
- {
- class House;
- class House_F: House
- {
- class DestructionEffects;
- };
- class ALF_Concess_Civil : House_F
- {
- scope = 2;
- displayName = "ALF_Concessionnaire_Civil";
- model = \ALF_ConcessCivil\Concessionnaire.p3d;
- mapSize = 20.27;
- vehicleClass = Structures;
- cost = 0;
- class AnimationSources
- {
- class Portes_source
- {
- source = user;
- initPhase = 0;
- animPeriod = 1;
- sound = "GenericDoorsSound";
- soundPosition = "Porte_actionPoint";
- };
- };
- class UserActions
- {
- class Ouvrir_Porte
- {
- displayNameDefault = "<img image='\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa' size='2.5' />";
- displayName = "Ouvrir";
- position = Porte_actionPoint;
- priority = 0.4;
- radius = 100;
- onlyForPlayer = 1;
- condition="this animationPhase ""Portes_source"" < 0.5";
- statement="this animate[""Portes_source"",1]";
- };
- class Fermer_Porte
- {
- displayNameDefault = "<img image='\A3\Ui_f\data\IGUI\Cfg\Actions\open_door_ca.paa' size='2.5' />";
- displayName = "Fermer";
- position = Porte_actionPoint;
- priority = 0.4;
- radius = 100;
- onlyForPlayer = 1;
- condition="this animationPhase ""Portes_source"" >= 0.5";
- statement="this animate[""Portes_source"",0]";
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement