Gobject Activating By C++ Script

Hi i have a little problem up there i´m trying to activate object in dungeon by C++ script so here is it.


switch (type)

  	{

        	case DATA_LORD_MARROWGAR:

                 	switch(state)

                        	{

  	                             case DONE:

   	                                     if(GameObject* icewall = instance->GetGameObject(201910))

   	                                          {

                                                      	icewall->SwitchDoorOrButton(true);

                                              	}

   	                                         break;

 	                      }

 	                      break;

   	}

But it don´t work when boss die Gobject is still here. Did Anybody see what´s wrong?

GetGameObject does not work with DB guids or DB entries

if you search for UseDoorOrButton in the scripts folder you can find different ways to do it