Initial commit
This commit is contained in:
12
Server/Entities/EntitiesPed.cs
Normal file
12
Server/Entities/EntitiesPed.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace CoopServer.Entities
|
||||
{
|
||||
struct EntitiesPed
|
||||
{
|
||||
public LVector3 Position { get; set; }
|
||||
|
||||
public bool IsInRangeOf(LVector3 position, float distance)
|
||||
{
|
||||
return LVector3.Subtract(Position, position).Length() < distance;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user