2021-07-07 13:36:25 +02:00
|
|
|
|
namespace CoopServer.Entities
|
|
|
|
|
{
|
2021-08-14 21:49:23 +02:00
|
|
|
|
public struct EntitiesPed
|
2021-07-07 13:36:25 +02:00
|
|
|
|
{
|
|
|
|
|
public LVector3 Position { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsInRangeOf(LVector3 position, float distance)
|
|
|
|
|
{
|
|
|
|
|
return LVector3.Subtract(Position, position).Length() < distance;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|