namespace BP
{
	namespace Actors
	{
		class PickupHealthFull : BP::ScriptActor
		{
			//------------------------------------------------------------------------------------------------------------------------
			PickupHealthFull(kActor@ actor)
			{
				super(actor);
			}
			//------------------------------------------------------------------------------------------------------------------------
			void Replace()
			{
				kActor@ newActor = BP::Spawn::Actor(kActor_BPHealthFull, self.Origin(), self.Yaw());
				newActor.Scale() = self.Scale();
				newActor.SetTarget(@self);
				self.Scale() = Math::vecZero;
				self.Flags() |= AF_HIDDEN;
				self.WorldComponent().TouchRadius() = 0.0f;
			}
			//------------------------------------------------------------------------------------------------------------------------
			void BP_OnDeserializeStart()
			{
				Replace();
			}
			//------------------------------------------------------------------------------------------------------------------------
			void BP_OnStart()
			{
				Replace();
			}
			//------------------------------------------------------------------------------------------------------------------------
		};
	}
}
