Welcome to the new Diaspora forums, please let us know if you see anything broken! Notice: Some users may need to reupload their avatars due to an issue during forum setup!
Ship Environment output players
Starkkz
Registered Posts: 17
It'd be nice if the ship environment entity could output which players are in it, it could be used for advanced targeting systems that would disable targeting on players that are in your station or ship, and so you would be able to target players and cores without targeting allies.
Comments
Now, E2 has no access to the Ship Environment's variable, but it DOES have access to the core's through the use of E:getCoreEnt(). So, once per second, send a trace up and down from each player, and each player that has both Trace:hitEntity():getCoreEnt() returns match will be "inside" your ship.