07-14-2021, 03:16 AM
(07-14-2021, 03:15 AM)NiLSPACE Wrote: Hi, welcome to the forum!
The reason it's giving an error is because you're calling 'SpawnMob' on a player object. What you want is the world object, probably the world of the player on which you're trying to spawn a monster on. So this line:
Player:SpawnMob(giant)
would have to be replaced with something like this:
Giantee:GetWorld():SpawnMob(Giantee:GetPosX(), Giantee:GetPosY(), Giantee:GetPosZ(), mtGiant, false);
Doesn't the SpawnMob method take a vector as a position parameter?