How do you pawn a creature in LUA?
I tried :SpawnCreature(90025,player:GetX(),player:GetY(),player:GetZ(), 1741, 50000)
But it comes up with the error
Code:attempt to call method 'SpawnCreature' <a nil value>
How do you pawn a creature in LUA?
I tried :SpawnCreature(90025,player:GetX(),player:GetY(),player:GetZ(), 1741, 50000)
But it comes up with the error
Code:attempt to call method 'SpawnCreature' <a nil value>
This works
pUnit:SpawnCreature(Entryid, X, Y, Z, O, 73, 0);
If you want to spawn it NOT underneath the origional mob use this type of setup
X = pUnit:GetX();
Y = pUnit:GetY();
Z = pUnit:GetZ();
O = pUnit:GetO();
X = X + 4
Y = Y + 4
pUnit:SpawnCreature(entryid, X, Y, Z, O, 73, 0);