{"name":"BIS_fnc_EXP_camp_guidedProjectile","operator":null,"title":"BIS fnc EXP camp guidedProjectile","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_guidedProjectile","revid":278997,"updated":"2021-06-13T21:47:34Z","groups":["Campaign"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":null,"effect":null,"server_exec":true},"exec":null,"description":"Spawns object of given class and makes it travel, hooming towards the target To be used with CfgAmmo type of entity, but can be used with virtually any kind of object","syntaxes":[{"syntax":"[] call BIS_fnc_EXP_camp_guidedProjectile","since":null,"effect":null,"exec":null,"params":[{"name":"_startPos","type":"Array, Position","types":["Array","Position"],"optional":false,"default":null,"description":"_class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing\n_target:        OBJECT            The target object the projectile will be hooming towards to\n_speed:            SCALAR            The speed the object should assume\n_destroyTarget:        BOOL            Whether to force destruction of the target object on detonation\n_localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to\n_minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode\n_function        STRING            The function to execute on the created object with params [<object>]\n_isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server","since":null,"text":"ARRAY             The initial position of the projectile (ASL)\n_class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing\n_target:        OBJECT            The target object the projectile will be hooming towards to\n_speed:            SCALAR            The speed the object should assume\n_destroyTarget:        BOOL            Whether to force destruction of the target object on detonation\n_localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to\n_minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode\n_function        STRING            The function to execute on the created object with params [<object>]\n_isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"NOTHING","source":"docblock"}}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Campaign","Functions","Functions: Server Execution","Introduced with Arma 3 version 1.62"],"docblock":{"author":"Nelson Duarte","description":"Spawns object of given class and makes it travel, hooming towards the target To be used with CfgAmmo type of entity, but can be used with virtually any kind of object","params":[{"index":null,"name":"_startPos","types":["Array","Position"],"optional":false,"default":null,"description":"_class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing\n_target:        OBJECT            The target object the projectile will be hooming towards to\n_speed:            SCALAR            The speed the object should assume\n_destroyTarget:        BOOL            Whether to force destruction of the target object on detonation\n_localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to\n_minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode\n_function        STRING            The function to execute on the created object with params [<object>]\n_isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server","text":"ARRAY             The initial position of the projectile (ASL)\n_class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing\n_target:        OBJECT            The target object the projectile will be hooming towards to\n_speed:            SCALAR            The speed the object should assume\n_destroyTarget:        BOOL            Whether to force destruction of the target object on detonation\n_localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to\n_minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode\n_function        STRING            The function to execute on the created object with params [<object>]\n_isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server"}],"returns":{"types":["Nothing"],"text":"NOTHING"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"text":"Author: Nelson Duarte\n\nDescription:\nSpawns object of given class and makes it travel, hooming towards the target\nTo be used with CfgAmmo type of entity, but can be used with virtually any kind of object\n\nParameters:\n    _startPos:         ARRAY             The initial position of the projectile (ASL)\n    _class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing\n    _target:        OBJECT            The target object the projectile will be hooming towards to\n    _speed:            SCALAR            The speed the object should assume\n    _destroyTarget:        BOOL            Whether to force destruction of the target object on detonation\n    _localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to\n    _minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode\n    _function        STRING            The function to execute on the created object with params [<object>]\n    _isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server\n\nReturns:\n    NOTHING"},"filled_from_docblock":["description","params","returns"]}