Most recent edit on 2007-02-11 16:22:48 by MiKail
Additions:
local hyp_table = SobGroup_GetPosition(Sobgroup)
Deletions:
hyp_table = SobGroup_GetPosition(Sobgroup)
Edited on 2007-02-11 16:22:25 by MiKail
Additions:
Volume_AddSphere("vol_exit"..li_Gindex, hyp_table, 10)
Deletions:
Volume_AddSphere("vol_exit"..li_Gindex, {hyp_table[1], hyp_table[2], hyp_table[3],}, 10)
Edited on 2007-02-11 16:21:11 by MiKail
Additions:
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.
<fRotation>: direction to point in degrees.
Definition
li_Gindex = 0
Deletions:
SobGroup_ExitHyperSpaceDirection(<sSobGroupName>, <Rotation>)
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
<Rotation>: direction to point in degrees.
OnInit() needs li_Gindex = 0
Edited on 2007-01-31 13:15:38 by Mostly_harmless
Additions:
OnInit() needs li_Gindex = 0
Deletions:
Onint needs li_Gindex = 0
Oldest known version of this page was edited on 2007-01-31 13:11:17 by Mostly_harmless []
Page view:
SobGroup_ExitHyperSpaceDirection(<sSobGroupName>, <Rotation>)
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.
<Rotation>: direction to point in degrees.
Onint needs li_Gindex = 0
function SobGroup_ExitHyperSpaceDirection(Sobgroup, Angle)
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[1], hyp_table[2], hyp_table[3],}, 10)
SobGroup_ExitHyperSpace(Sobgroup, "vol_exit"..li_Gindex)
li_Gindex = li_Gindex + 1
end