VN_ms_fnc_aoTeleport
Jump to navigation
Jump to search
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Teleports the player to the given position. Can spawn an ambient helicopter (uses VN_ms_fnc_spawnAmbHeli).
Syntax
- Syntax
- [pos, radius, heliClass] call VN_ms_fnc_aoTeleport
- Parameters
- pos: Array - centre position to which the unit should be teleported
- radius: Number - (Optional, default
10
) exact distance from pos at a random (360°) angle - heliClass: String - (Optional, default
""
) helicopter classname - if empty, no helicopter will be spawned - Return value
- Boolean - function's success
Examples
- Example 1
[getPos sogLeader, 5] call VN_ms_fnc_aoTeleport;
- Example 2
[getPos sogLeader, 5, "VN_b_air_CH34_04_04"] call VN_ms_fnc_aoTeleport;