Pink Storage is a AI Controller.
#My Spawn Code
void AVictoryPower::JoySpawn_Creatures_Implementation(AEvolver* NewCreature)
{
if(!NewCreature) return;
//~~~~~~~~~~~~~
//~~~ Pink Storage ~~~
APinkStorage * ThePinkStorage = VictoryPC->CreatePinkStorage();
//~~~ Send to Pink Storage ~~~
if(ThePinkStorage) ThePinkStorage->Possess(NewCreature);
//~~~ No Gravity In Editor Mode ~~~
NewCreature->SERVER_SetGravityScale(0);
//~~~ Victory Transform Initial ~~~
NewCreature->SERVER_UpdateVictoryTransformToCurrent();
//Turn to Face
NewCreature->TurnToFaceAngle = NewCreature->GetActorRotation();
}
//main spawn function
{
//PotentialBP ?
if (!VictoryPC->SkelBP) return;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~
SpawnInfo.bNoCollisionFail = true; //its a global var for general use
SpawnInfo.Owner = VictoryPC; //the player controller
AVictorySkel* NewCreature =
GetWorld()->SpawnActor(VictoryPC->SkelBP, GetActorLocation() ,GetActorRotation() + FRotator(0,90,0), SpawnInfo );
//~~~ Controller not created ~~~
if(!NewCreature) return;
//~~~~~~~~~~~~~~~~~~~~~
JoySpawn_Creatures(NewCreature);
}