Jump to content

Recommended Posts

Posted

Ive got the following code in my script, it works in single player and works in MP when flying on the server machine, but fails with 'Group doesn't exist' when it comes to a client aircraft. Am I doing something wrong?

 

It fails on

local groupID = Group.getID(group)

only when it comes to a client aircraft. vec is a Unit object

 

if vec ~= nil and Unit.isActive(vec) then
    playerName = Unit.getPlayerName(vec)
    local group = Unit.getGroup(vec)
    local groupID = Group.getID(group) --Fails here on clients
    if playerName ~= nil then
         --Do stuff here
    end
end

-16AGR- 16th Air Guards Regiment is always looking for pilots - http://www.16agr.com

 

EWRS - Early Warning Radar Script

 

Specs:

 

 

Gigabyte Sniper Z5-S

Intel i5-4670k 3.4GHz OC'd 3.9GHz w/ Thermaltake 120mm Water 3.0 Pro Liquid CPU Cooler

16GB RAM

Gigabyte GTX 1080

TM Hotas Warthog: SN: 06976

Saitek Pro Flight Combat Rudder Pedals

TrackIR5 with TrackClipPro & Oculus Rift

2x 28" 4k UHD Monitors (3840x2160 each) + 1280x1024

 

 

Posted

Think it was a 1.5 beta scripting issue. Perhaps it hasn't been fixed yet not sure but from the known scripting issues over in the 1.5 beta thread.

 

"31682 - Client groups not accessible in multiplayer."

  • Like 1
Posted

Ok. Thank you so much. This was doing my head in. I could not for the life of me figure out what was going on. Didn't think to check there.

 

Thanks again.

-16AGR- 16th Air Guards Regiment is always looking for pilots - http://www.16agr.com

 

EWRS - Early Warning Radar Script

 

Specs:

 

 

Gigabyte Sniper Z5-S

Intel i5-4670k 3.4GHz OC'd 3.9GHz w/ Thermaltake 120mm Water 3.0 Pro Liquid CPU Cooler

16GB RAM

Gigabyte GTX 1080

TM Hotas Warthog: SN: 06976

Saitek Pro Flight Combat Rudder Pedals

TrackIR5 with TrackClipPro & Oculus Rift

2x 28" 4k UHD Monitors (3840x2160 each) + 1280x1024

 

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...