mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
xx
This commit is contained in:
parent
2a1234f7ff
commit
3ed61e8a2a
@ -3003,7 +3003,7 @@ end
|
|||||||
-- local callsign = mygroup:GetCustomCallSign(true,false,nil,function(groupname,playername) return string.match(playername,"([%a]+)$") end)
|
-- local callsign = mygroup:GetCustomCallSign(true,false,nil,function(groupname,playername) return string.match(playername,"([%a]+)$") end)
|
||||||
--
|
--
|
||||||
function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations,CustomFunction,...)
|
function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations,CustomFunction,...)
|
||||||
--self:I("GetCustomCallSign")
|
self:T("GetCustomCallSign")
|
||||||
|
|
||||||
local callsign = "Ghost 1"
|
local callsign = "Ghost 1"
|
||||||
if self:IsAlive() then
|
if self:IsAlive() then
|
||||||
@ -3016,8 +3016,12 @@ function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations,C
|
|||||||
local callnumbermajor = string.char(string.byte(callnumber,1)) -- 9
|
local callnumbermajor = string.char(string.byte(callnumber,1)) -- 9
|
||||||
local callnumberminor = string.char(string.byte(callnumber,2)) -- 1
|
local callnumberminor = string.char(string.byte(callnumber,2)) -- 1
|
||||||
local personalized = false
|
local personalized = false
|
||||||
local playername = IsPlayer == true and self:GetPlayerName() or shortcallsign
|
--local playername = IsPlayer == true and self:GetPlayerName() or shortcallsign
|
||||||
|
local playername = shortcallsign
|
||||||
|
|
||||||
|
if IsPlayer then playername = self:GetPlayerName() end
|
||||||
|
|
||||||
|
self:T2("GetCustomCallSign outcome = "..playername)
|
||||||
if CustomFunction and IsPlayer then
|
if CustomFunction and IsPlayer then
|
||||||
local arguments = arg or {}
|
local arguments = arg or {}
|
||||||
local callsign = CustomFunction(groupname,playername,unpack(arguments))
|
local callsign = CustomFunction(groupname,playername,unpack(arguments))
|
||||||
|
|||||||
@ -145,7 +145,11 @@ function POSITIONABLE:GetPosition()
|
|||||||
self:F2( self.PositionableName )
|
self:F2( self.PositionableName )
|
||||||
|
|
||||||
local DCSPositionable = self:GetDCSObject()
|
local DCSPositionable = self:GetDCSObject()
|
||||||
|
|
||||||
|
if self:IsInstanceOf("GROUP") then
|
||||||
|
DCSPositionable = self:GetFirstUnitAlive():GetDCSObject()
|
||||||
|
end
|
||||||
|
|
||||||
if DCSPositionable then
|
if DCSPositionable then
|
||||||
local PositionablePosition = DCSPositionable:getPosition()
|
local PositionablePosition = DCSPositionable:getPosition()
|
||||||
self:T3( PositionablePosition )
|
self:T3( PositionablePosition )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user