{"name":"animatePylon","title":"animatePylon","type":"command","url":"https://community.bistudio.com/wiki/animatePylon","revid":336888,"updated":"2023-01-04T16:43:53Z","groups":["Animations","Vehicle Loadouts"],"status":"ok","games":{"arma3":"1.70"},"since":"arma3 1.70","arma3_since":"1.70","description":"Force animation of pylon to given state, -1 for reset to engine handling, can cause weapon inoperative, because weapon is released when pylon state == 1.","syntaxes":[{"syntax":"vehicle animatePylon [pylon, animphase, instant]","params":[{"name":"vehicle","type":"Object","type_expr":"Object"},{"name":"pylon","type":"Number or Arma 3 v1.94 String","description":"pylon index (index starts from 1) or pylon name (see getCompatiblePylonMagazines - Example 3)","type_expr":"Number | String"},{"name":"animphase","type":"Number","description":"animation phase in range 0..1","type_expr":"Number"},{"name":"instant","type":"Boolean","optional":true,"description":"animate immediately","type_expr":"Boolean","text":"instant: Boolean - (Optional) animate immediately"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"vehicle"},"right":{"text":"[pylon, animphase, instant]"}}],"examples":[{"code":["vehicle player animatePylon [1, 0.5];"]},{"code":["vehicle player animatePylon [\"pylon1\", 0.5];"]},{"code":["vehicle player animatePylon [\"pylon1\", 1, true];"]}],"see_also":["Arma 3: Vehicle Loadouts","getCompatiblePylonMagazines","getPylonMagazines","setAmmoOnPylon","animateBay","setPylonsPriority","setPylonLoadout"]}