Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename VictoryObjType>
- static FORCEINLINE VictoryObjType* SpawnBP(
- UWorld* TheWorld,
- UClass* TheBP,
- const FVector& Loc,
- const FRotator& Rot,
- const bool bNoCollisionFail = true,
- AActor* Owner = NULL,
- APawn* Instigator = NULL
- ){
- if (!TheWorld) return NULL;
- if (!TheBP) return NULL;
- //~~
- FActorSpawnParameters SpawnInfo;
- SpawnInfo.Owner = Owner;
- SpawnInfo.bNoCollisionFail = bNoCollisionFail;
- SpawnInfo.Instigator = Instigator;
- SpawnInfo.bDeferConstruction = false;
- return TheWorld->SpawnActor<VictoryObjType>(TheBP, Loc, Rot, SpawnInfo);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement