Advertisement
Guest User

Untitled

a guest
Jan 14th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.22 KB | None | 0 0
  1. span class="re5"> class BP_BearTrap : BP_Object
  2.     {
  3.         scope = 2;
  4.         model = "\breakingpoint\models\bp_beartrap.p3d";
  5.         displayName = "Bear Trap";
  6.  
  7.         class EventHandlers {
  8.             init = "[_this] call BP_fnc_trapInit;";
  9.         };
  10.        
  11.         class AnimationSources
  12.         {
  13.             class LeftShutter
  14.             {
  15.                 source = "user";
  16.                 animPeriod = 0.1;
  17.                 initPhase = 0;
  18.             };
  19.  
  20.             class RightShutter
  21.             {
  22.                 source = "user";
  23.                 animPeriod = 0.1;
  24.                 initPhase = 0;
  25.             };
  26.         };
  27.  
  28.         class UserActions
  29.         {
  30.             class OpenTrap
  31.             {
  32.                 position = "";
  33.                 displayName = "Open Trap";
  34.                 radius = 1.5;
  35.                 onlyForPlayer = 0;
  36.                 condition = "this animationPhase 'LeftShutter' == 1";
  37.                 statement = "[this,player] call BP_fnc_trapActivate;";
  38.             };
  39.  
  40.             class CloseTrap
  41.             {
  42.                 position = "";
  43.                 displayName = "Close Trap";
  44.                 radius = 1.5;
  45.                 onlyForPlayer = 0;
  46.                 condition = "this animationPhase 'LeftShutter' == 0";
  47.                 statement = "[this,player] call BP_fnc_trapDeactivate;";
  48.             };
  49.  
  50.             class CollectTrap
  51.             {
  52.                 position = "";
  53.                 displayName = "Collect Trap";
  54.                 radius = 1.5;
  55.                 onlyForPlayer = 0;
  56.                 condition = "this animationPhase 'LeftShutter' == 1";
  57.                 statement = "[this,player] call BP_fnc_trapCollect;";
  58.             };
  59.         };
  60.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement