Jump to content
Aelle

Object Randomizer

Recommended Posts

'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

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

21338023321_1af90aaaec_b.jpg

 


Speaking of the warden, the banned world can be quite relaxing... 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×