SobGroup_ExitHyperSpaceDirection(<sSobGroupName>, <fRotation>)
Description
Here is a script to trigger vessels to exit from hyperspace at a specific rotation on the z plane ( hw2 y plane). So 90 will point east.
Same process as
SobGroup_ExitHyperSpace.
Example
SobGroup_ExitHyperSpaceDirection("sg_Fighter", 90)
Arguments
<sSobGroupName>: the name of the sobgroup.
<fRotation>: direction to point in degrees.
Definition
li_Gindex = 0
function SobGroup_ExitHyperSpaceDirection(Sobgroup, Angle)
local hyp_table = SobGroup_GetPosition(Sobgroup)
hyp_table[1] = 10 * sin(Angle) + hyp_table[1]
hyp_table[3] = 10 * cos(Angle) + hyp_table[3]
Volume_AddSphere("vol_exit"..li_Gindex, hyp_table, 10)
SobGroup_ExitHyperSpace(Sobgroup, "vol_exit"..li_Gindex)
li_Gindex = li_Gindex + 1
end