{"name":"BIS_fnc_destroyer01PlayHangarDoorSound","operator":null,"title":"BIS fnc destroyer01PlayHangarDoorSound","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_destroyer01PlayHangarDoorSound","revid":286099,"updated":"2021-06-20T17:25:44Z","groups":["Destroyer"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.84"}],"since":{"game":"arma3","name":"Arma 3","version":"1.84"},"arma3_since":"1.84","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"- This is a sub function designed to add sounds required for ship hangar door animation.","syntaxes":[{"syntax":"[] call BIS_fnc_destroyer01PlayHangarDoorSound","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"Number","types":["Number"],"optional":false,"default":null,"description":"(Scalar)","since":null,"text":"0: (Scalar)","source":"docblock"},{"name":"param0","type":null,"types":[],"optional":false,"default":null,"description":"ship-part object\nand","since":null,"text":"0: ship-part object\nand","source":"docblock"},{"name":"param1","type":"Position","types":["Position"],"optional":false,"default":null,"description":null,"since":null,"text":"1: position in word coordinates where the sound should be played (modelToWorldWorld)","source":"docblock"},{"name":"param2","type":null,"types":[],"optional":false,"default":null,"description":"animation state of hangar doors","since":null,"text":"2: animation state of hangar doors","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"nothing\nShip's hangar door animation gets a sound source added.","source":"docblock"}}],"examples":[{"text":"```sqf\n[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;\n```","code":["[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Destroyer","Functions","Introduced with Arma 3 version 1.84"],"docblock":{"author":"Bravo Zero One development, John_Spartan","description":"- This is a sub function designed to add sounds required for ship hangar door animation.","params":[{"index":0,"name":"mode","types":["Number"],"optional":false,"default":null,"description":"(Scalar)","text":"(Scalar)"},{"index":0,"name":null,"types":[],"optional":false,"default":null,"description":"ship-part object\nand","text":"ship-part object\nand"},{"index":1,"name":null,"types":["Position"],"optional":false,"default":null,"description":null,"text":"position in word coordinates where the sound should be played (modelToWorldWorld)"},{"index":2,"name":null,"types":[],"optional":false,"default":null,"description":"animation state of hangar doors","text":"animation state of hangar doors"}],"returns":{"types":["Nothing"],"text":"nothing\nShip's hangar door animation gets a sound source added."},"examples":["[_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;"],"syntax":null,"execution":"- Call from main script that handles the hangar door animation.","notes":null,"requirements":null,"meta":{},"text":"Author: Bravo Zero One development\n- John_Spartan\n\nDescription:\n- This is a sub function designed to add sounds required for ship hangar door animation.\n\nExecution:\n- Call from main script that handles the hangar door animation.\n\n    Example:\n    [_shipPart, _soundPos, _animationState] spawn BIS_fnc_destroyer01PlayHangarDoorSound;\n\nParameter(s):\n    _this select 0: mode (Scalar)\n    0: ship-part object\n    and\n    1: position in word coordinates where the sound should be played (modelToWorldWorld)\n    2: animation state of hangar doors\n\nReturns: nothing\nResult: Ship's hangar door animation gets a sound source added."},"filled_from_docblock":["description","params","returns","examples"]}