• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore WotLK PerformIngameSpawn - Gameobject orientation broken?

therealdudelee

Enthusiast
Hi guys, I know I've posted here quite a bit recently... But I've got another issue.

Every time (since updating) I try to spawn a gameobject using the PerformIngameSpawn global function, the orientation is always 0. Is this an issue with Eluna or am I doing something wrong?

Here's some samples of code I'm using:

Code:
PerformIngameSpawn(2, WALL_ID, MAP_ID, 0, x, y, z, 3.1, false)
PerformIngameSpawn(2, WALL_ID, MAP_ID, 0, x, y, z, 0, false)

Using this code, both the walls spawn facing the same way (0 orientation). Help me out here dudes.

Thanks,
DL
 

slp13at420

Mad Scientist
here is an example of what I have working for `Guild Warz` in the latest rev.:
Code:
[COLOR="#808080"]
PerformIngameSpawn(2, Go_id, player:GetMapId(), player:GetInstanceId(), player:GetX(), player:GetY(), player:GetZ(), player:GetO(), true, 0, player:GetPhaseMaskForSpawn());
[/COLOR]

you may need to populate all the fields to get it to work right and yea !ugh! it was a pain to get it to spawn GOs/NPCs properly and visible in game lol.
this example saves to DB set to true and I used the players phasemask . dunno if this will help or not ... that is a rather weird issue you are having. :hmmmm2:
 
Last edited:

Rochet2

Moderator / Eluna Dev
Everything seems to work fine for me.

How exactly did you update?
It is possible you only updated your core but not Eluna. (I mean you got the core changes to core but not to LuaEngine folder in your source, which has the core functionality of eluna)

Try running
git submodule init
git submodule update

and then recompile.

I tested with
Code:
.eluna PerformIngameSpawn(2, 35, plr:GetMapId(), plr:GetInstanceId(), plr:GetLocation() )
When using https://github.com/ElunaLuaEngine/Scripts/blob/master/Extensions/RunElunaCommand.lua
 
Last edited:

therealdudelee

Enthusiast
Hey dudes sorry for the late response. I didn't update I actually just recompiled my core from scratch with Eluna, so everything is up to date. I'm gonna have a fiddle around with it again tonight, and try grumbos solution. Thanks for both of your replies.
 
Top