Team Spartan Cookies & Milk Forums
Shield:setActive() - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Shield:setActive() (/thread-3147.html)



Shield:setActive() - 4N0NYM - 14-10-2019

When i use it to activate the Shield it just drops immediately after it raised

ents.self():getCore():getShield()ConfusedetActive(true)

Shield:addWhitelistPlayers() and Shield:removeWhitelistPlayer() seems to be not working aswell


RE: Shield:setActive() - Person8880 - 15-10-2019

I'm assuming you're referring to using it on an Atlantis shield? It should stay active after calling ShieldConfusedetActive( true ) correctly after the next restart.

As for the whitelist, what are you trying to pass through the shield? The whitelist applies only to shuttles, not all props.


RE: Shield:setActive() - 4N0NYM - 15-10-2019

a normal Puddle Jumper, i looked it with Debug, the Player i wanted to add didnt even go in the Allowed Players list.


RE: Shield:setActive() - Person8880 - 16-10-2019

It seems to work fine for me (and it's not changed in a long time). Can you post a code snippet that reproduces the problem for you?


RE: Shield:setActive() - 4N0NYM - 16-10-2019

I tested it again and now it seems just to work fine.