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

class BP_Bit : ScriptObject
{
    kActor @self;
	//------------------------------------------------------------------------------------------------------------------------
    BP_Bit(kActor @actor)
	{
        @self = actor;
    }
	//------------------------------------------------------------------------------------------------------------------------
	void OnActivate()
	{
		self.MarkPersistentBit(false);
		self.Remove();
	}
	//------------------------------------------------------------------------------------------------------------------------
    void OnRestore()
    {
		self.Remove();
    }
	//------------------------------------------------------------------------------------------------------------------------
    void OnTick()
	{
    }
	//------------------------------------------------------------------------------------------------------------------------
    void OnSpawn()
	{
    }
	//------------------------------------------------------------------------------------------------------------------------
}
