Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Help and Support v
« Previous 1 … 5 6 7 8 9 … 21 Next »
Shield starfall type not updated with new shield type.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Shield starfall type not updated with new shield type.
23-08-2018, 05:16 PM, (This post was last modified: 23-08-2018, 07:58 PM by Yuri6037. Edited 1 time in total.)
#1
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
Shield starfall type not updated with new shield type.
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
Find
Reply
24-08-2018, 12:21 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Shield starfall type not updated with new shield type.
Fixed after the next restart.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.