ServerObject Inheritance, getter and setter for Position and Roatation, Fix connect error.

This commit is contained in:
Sardelka
2022-07-03 10:46:24 +08:00
parent f47f0570f9
commit dc5cf2b965
22 changed files with 361 additions and 279 deletions

View File

@ -29,7 +29,15 @@ namespace RageCoop.Server.Scripting
{
c.SendCustomEvent(CustomEvents.SetAutoRespawn, toggle );
}
public void SendServerObjectsTo(List<ServerProp> objects,List<Client> clients=null)
public void SetNameTag(Client c, bool toggle)
{
foreach(var other in API.GetAllClients().Values)
{
if (c==other) { continue; }
other.SendCustomEvent(CustomEvents.SetDisplayNameTag,c.Player.ID, toggle);
}
}
public void SendServerPropsTo(List<ServerProp> objects,List<Client> clients=null)
{
foreach(var obj in objects)
{