So I have created a door and a key/button to interact with so I can open the door but I have no idea how to link them together. I am pretty noobish with SQL so any help would be real nice!
So I have created a door and a key/button to interact with so I can open the door but I have no idea how to link them together. I am pretty noobish with SQL so any help would be real nice!
I am not sure about doing it in sql, but you can add a c++ script to the button gameobject that changes the state of your door.
if (GameObject* go_my_door = GetClosestGameObjectWithEntry(this, GO_DOOR, 1000))
{
go_my_door->ResetDoorOrButton();
go_my_door->SetGoState(GO_STATE_READY);
}
Finally found it for SQL. Here is the link for people who need it.
gameobject_template - Mangos Zero - getMaNGOS | The home of MaNGOS
Make sure you link them in "gameobject_scripts" after creating "gameobject_template" and "gameobject".