13 lines
285 B
C#
13 lines
285 B
C#
namespace CoopServer.Entities
|
|
{
|
|
struct EntitiesPed
|
|
{
|
|
public LVector3 Position { get; set; }
|
|
|
|
public bool IsInRangeOf(LVector3 position, float distance)
|
|
{
|
|
return LVector3.Subtract(Position, position).Length() < distance;
|
|
}
|
|
}
|
|
}
|