![]() |
|
SF Entity:getEnvironmentData() - 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: SF Entity:getEnvironmentData() (/thread-1564.html) |
SF Entity:getEnvironmentData() - SuperPlayer - 31-01-2016 Well i am working on an anti-intruder system which jails all players when i am in space. I am using Entity:getEnvironmentData() for this. Basicly i am doing this:
If I correctly understood how this function works it should only print the message if I am in space and my LS Core is on. But for some reason it also prints it when i am on a planet with turned on LS Core. But only if someone is beaming in or out of my ship with the Star Trek teleporter. And their enviroment stays as my LS Core only during the transporting process. After that it goes back to the planet enviroment. Is this a bug in my code or in Entity:getEnvironmentData()? If it is a bug in my code how do i resolve this? SuperPlayer RE: SF Entity:getEnvironmentData() - TheOneAndOnlyTee - 31-01-2016 I've had it as well, also pretty sure jailing players was forbidden in some discussion because of troubling events with LocInt's base. People now just beam the intruder to spawn. RE: SF Entity:getEnvironmentData() - SuperPlayer - 31-01-2016 Well i am jailing them for 5 seconds and telling them to not come back without my permission and then i am beaming them away. RE: SF Entity:getEnvironmentData() - esitee - 31-01-2016 Had the same problem with that function when I tried to send a Welcome message to players that enter my ship. For me it never worked well. It just displayed sometimes when someone beamed in, as you said. It didn't worked in space at all. That seems a bit buggy, or is it just me? RE: SF Entity:getEnvironmentData() - Person8880 - 31-01-2016 It assigns the LS core because players that are transporting are not solid, and don't trigger the planet's environment until they finish materialising (and are thus solid again). This will be fixed after the next server restart(s). |