Aelle 16 Posted June 20, 2018 'lo folks! Is there at all a way to create an addon that spawns an object at random from a list of object ID's given? This would make spawning randomized objects such as a trees or ground clutter infinitely less painful and it, hypothetically, doesn't sound all too difficult. Share this post Link to post Share on other sites
Gardener 126 Posted June 20, 2018 just use a macro like this /script gameobjects = { "ID1", "ID2", "ID3", "ID4" }; SendChatMessage(".gobject spawn "..gameobjects[math.random(table.getn(gameobjects))]); where it says "ID1", "ID2" etc, replace with gameobject id. If you want to add more than 4, or delete some just delete the entries and make sure the last one doesn't have a comma , example: /script gameobjects = { "61102", "61103", "61104" }; SendChatMessage(".gobject spawn "..gameobjects[math.random(table.getn(gameobjects))]); there's 3 there. notice how the 3rd one doesn't have a comma. bind to a key and spam away. p.s. be careful of warden Share this post Link to post Share on other sites
Romeo 320 Posted June 20, 2018 Speaking of the warden, the banned world can be quite relaxing... Share this post Link to post Share on other sites