![]() |
|
Shield starfall type not updated with new shield type. - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html) +--- Thread: Shield starfall type not updated with new shield type. (/thread-2783.html) |
Shield starfall type not updated with new shield type. - Yuri6037 - 23-08-2018 Hi, I recently noticed a problem in my Starfall coming down to that part : local shield = Target.Entity:getShield() if (not(IsValid(shield))) then return false, 0, 0 end return shield:isActive(), shield:getTotalCharge(), shield:getMaxCharge() It seem that when target ship shield is an atlantis type shield, ShipCore:getShield() returns nil. This makes my scripts unable to detect shield stats for any other ship. EDIT : The problem is even worse, ShipCore:getShipSize() returns always NULL vector when shield is atlantis type... Can you do anything about that ? Thanks by advance, Yuri6037 RE: Shield starfall type not updated with new shield type. - Person8880 - 24-08-2018 Fixed after the next restart. |