Difference between revisions of "VN ms fnc aoTeleport"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 8: | Line 7: | ||
|a= | |a= | ||
− | |e= | + | |e= global |
|g1= general | |g1= general | ||
− | |d= | + | |d= Teleports the player to the given position. Can spawn an ambient helicopter (uses [[VN_ms_fnc_spawnAmbHeli]]). |
− | |||
− | |||
− | + | |s= [pos, radius, heliClass] call [[VN_ms_fnc_aoTeleport]] | |
− | |||
− | + | |p1n= pos | |
− | + | |p1t= array | |
− | + | |p1d= centre position to which the unit should be teleported | |
− | + | |p1v= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | + | |p2n= radius |
+ | |p2t= number | ||
+ | |p2d= '''exact distance''' from ''pos'' at a random (360°) angle | ||
+ | |p2v= 10 | ||
− | | | + | |p3n= heliClass |
− | | | + | |p3t= string |
− | | | + | |p3d= helicopter classname - if empty, no helicopter will be spawned |
− | | | + | |p3v= "" |
− | | | + | |r1t= boolean |
− | | | + | |r1d= function's success |
− | |||
− | |||
− | | | + | |x1= <code>[getPos sogLeader, 5] call [[VN_ms_fnc_aoTeleport]];</code> |
− | |||
− | | | + | |x2= <code>[getPos sogLeader, 5, "VN_b_air_CH34_04_04"] call [[VN_ms_fnc_aoTeleport]];</code> |
}} | }} |
Latest revision as of 12:59, 22 February 2021
← 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;