Jump to content

Gameobject Stat


Guest RAzor1812

Recommended Posts

hi, im coding a little bit on mangos to make a few custom features, it works kinda good but now i want that if someone looted the gameobject, the object will delete itself!

it works well, but at the 'while' i dont know if getLootState is the right methode for this, and if it is the right, what can i write instead 'looted' (looted is wrong, only a placeholder)

        GameObject* ding = new GameObject(NULL);
       ding->Create(guidlow, name_id, mapid, x, y, z, ang, rotation0, rotation1, rotation2, rotation3,animprogress, go_state);

       while(!(ding->getLootState == looted)) {                // looted is wrong - there should be something better

       }else {                                                                     // if it is looted
               ding->Delete();
       }

thanks for all replys!

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use