#include "scripts/common.txt"
#include "scripts/BP_common.txt"

class BP_Pickup : ScriptObject
{
    kActor @self;
	float radius = 5625.0f;
	//------------------------------------------------------------------------------------------------------------------------
    BP_Pickup(kActor @actor)
	{
        @self = actor;
    }
	//------------------------------------------------------------------------------------------------------------------------
    void OnTick()
	{
		self.Yaw() += 0.017453f;
		if (IsPlayerInRadius(self.Origin(), radius))
		{
			OnPickup();
		}
    }
	//------------------------------------------------------------------------------------------------------------------------
	void OnPickup()
	{
	}
	//------------------------------------------------------------------------------------------------------------------------
    void OnSpawn()
	{
    }
	//------------------------------------------------------------------------------------------------------------------------
    void OnRestore()
    {
		self.Remove();
    }
	//------------------------------------------------------------------------------------------------------------------------
}
