mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
quite a bit of stuff
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "EngineTypes.h"
|
||||
#include "Transform.h"
|
||||
#include "Object.h"
|
||||
#include "Rotator.h"
|
||||
|
||||
struct FNetworkNotify
|
||||
{
|
||||
@@ -45,5 +46,15 @@ public:
|
||||
return (ActorType*)SpawnActorOriginal(this, Class, &UserTransformPtr, SpawnParameters);
|
||||
}
|
||||
|
||||
template <typename ActorType>
|
||||
ActorType* SpawnActor(UClass* Class, FVector Location, FQuat Rotation = FQuat(), FVector Scale3D = FVector(1, 1, 1), const FActorSpawnParameters& SpawnParameters = FActorSpawnParameters())
|
||||
{
|
||||
FTransform UserTransformPtr{};
|
||||
UserTransformPtr.Translation = Location;
|
||||
UserTransformPtr.Rotation = Rotation;
|
||||
UserTransformPtr.Scale3D = Scale3D;
|
||||
return SpawnActor<ActorType>(Class, UserTransformPtr, SpawnParameters);
|
||||
}
|
||||
|
||||
void Listen();
|
||||
};
|
||||
Reference in New Issue
Block a user