Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class EventHandlers {
- init="_this animate ['slideOut', 1]; _this animate ['laptopScreen', 1]";
- }
- class UserActions
- {
- class PullRack
- {
- displayName = "Pull Rack";
- position = "user_trigger";
- priority = 0.4;
- radius = 3;
- onlyForPlayer = 1;
- condition = "((_this animationPhase 'slideOut') < 0.5) AND ((_this animationPhase 'laptopScreen') < 0.5)";
- statement = "_this animate [""slideOut"",0];";
- };
- class PushRack : PullRack
- {
- displayName = "Push Rack";
- condition = "((_this animationPhase 'slideOut') > 0.5) AND ((_this animationPhase 'laptopScreen') < 0.5)";
- statement = "_this animate [""slideOut"",1];";
- };
- class OpenLaptop : PullRack
- {
- displayName = "Open Laptop";
- condition = "((_this animationPhase 'laptopScreen') < 0.5) AND ((_this animationPhase 'slideOut') > 0.5)";
- statement = "_this animate [""slideOut"",0];";
- };
- class CloseLaptop : PullRack
- {
- displayName = "Close Laptop";
- condition = "((_this animationPhase 'laptopScreen') > 0.5) AND ((_this animationPhase 'slideOut') < 0.5))";
- statement = "_this animate [""slideOut"",1];";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment