attempting to make a plugin to spawn giants
#4
(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?
Reply
Thanks given by: Code_Blue


Messages In This Thread
RE: attempting to make a plugin to spawn giants - by 12xx12 - 07-14-2021, 03:16 AM



Users browsing this thread: 1 Guest(s)