---
name: "BIS_fnc_EXP_camp_guidedProjectile"
type: function
status: ok
groups: ["Campaign"]
arma3_since: "1.62"
locality: {"argument": null, "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_guidedProjectile
revid: 278997
updated: 2021-06-13T21:47:34Z
---

# BIS_fnc_EXP_camp_guidedProjectile

*Function · Campaign · Arma 3 v1.62*

Locality: **server execution only**

## 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

## Syntax

```sqf
[] call BIS_fnc_EXP_camp_guidedProjectile
```

**Parameters:**

- `_startPos` — ARRAY             The initial position of the projectile (ASL)
  _class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing
  _target:        OBJECT            The target object the projectile will be hooming towards to
  _speed:            SCALAR            The speed the object should assume
  _destroyTarget:        BOOL            Whether to force destruction of the target object on detonation
  _localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to
  _minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode
  _function        STRING            The function to execute on the created object with params [<object>]
  _isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server

**Returns:** NOTHING

## Function header

The comment at the top of the function's file in the game; this page's description, params, returns come from it.

```sqf
/*
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

Parameters:
    _startPos:         ARRAY             The initial position of the projectile (ASL)
    _class:         STRING or OBJECT    The class name of the object to spawn or an object entity already existing
    _target:        OBJECT            The target object the projectile will be hooming towards to
    _speed:            SCALAR            The speed the object should assume
    _destroyTarget:        BOOL            Whether to force destruction of the target object on detonation
    _localOffset:        ARRAY            The model space position offset that projectile should be hooming towards to
    _minDistanceToTarget:    SCALAR            The minimal distance projectile needs to be from target position to enter ballistic mode
    _function        STRING            The function to execute on the created object with params [<object>]
    _isGlobalFunction    BOOL            Whether the executed function should be executed on all connected machine, false to execute only on the server

Returns:
    NOTHING
*/
```

<sub>Source: [BI Community Wiki — BIS fnc EXP camp guidedProjectile](https://community.bistudio.com/wiki/BIS_fnc_EXP_camp_guidedProjectile) (revision 278997).</sub>
