RandomSpawner

Randomly spawn a specific amount of an entity on the map

Total Downloads: 1,856 - First Release: Nov 14, 2015 - Last Update: Apr 14, 2017

5/5, 4 likes
  1. LaserHydra submitted a new resource:

    Random Spawner - Randomly spawn a specific amount of an entity on the map

    Read more about this resource...
     
  2. choice man. also

    Permissions:
    • rwarp.use
    • rwarp.getprefabs
    should be

    • rspawn.use
    • rspawn.getprefabs
    ?

    :D

    thanks!
    [DOUBLEPOST=1447487045][/DOUBLEPOST]This is awesome man. Is it somehow possible to have entities spawn onto the island itself? I have hemp plants growing in the sky and loot crates in the ocean.
     

    Attached Files:

  3. Thanks for reporting the wrong permission :p was tired.
    This is an pre-version. improvements are planned.
    I am trying to improve the Terrain height finding ;)
    Did it spawn all in the air or just some?

    Also added an Info part to the Overview ;)
     
    Last edited by a moderator: Nov 14, 2015
  4. I this the tool I requested? will you have location spawning added? for example I need:
    1. Spawn trash at location XYZ
    2. spawn on a schedule like "Spawn Trash loc: XYC time:3600 (every hour or any time in seconds)
    3. trigger on zone entry
     
  5. nope- This gives you the possibillity to spawn any amount of any entity randomly on your map.
     
  6. At a guess maybe 30-40% spawned in the air. The rest were on the ground. Majority of the loot barrels/crates that are spawned are in the ocean.

    Great plugin though. Looking forward to seeing this progress!
     
  7. This does not seem to be working for me, I type in /rspawn amount the wolf_prefab and nothing happens?

    Plaese help!
     
  8. you need the full prefab currently:
    assets/bundled/prefabs/autospawn/animals/wolf.prefab
     
  9. So i have to add all that when i wont to spwan something?
     
  10. yes. This is a very early state of this plugin. Improvements are planned.
     
  11. What do i have to do with the prefab.txt that i get form the server?
     
  12. That lists you availiable prefabs, try finding the prefabs you are searching for. some are also listed on the overview of this plugin.
     
  13. Getting this error
    Code:
    > rspawn 15 assets/bundled/prefabs/autospawn/resource/loot/loot-barrel-1.prefab
    [Oxide] 2:43 AM [Error] Failed to call hook 'ccmdSpawnRandom' on plugin 'RandomSpawner v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 2:43 AM [Debug]   at Oxide.Plugins.RandomSpawner.RunAsChatCommand (.Arg arg, System.Action`3 command) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RandomSpawner.ccmdSpawnRandom (.Arg arg) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RandomSpawner.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 
    I want to spawn barrels, ore, and stag at given intervals. Do you know if BetterLoot will recognize these barrels and refresh them automatically like it does to the other entities it controls? Reason being, if I spawn in say 15 barrels at one time that may be useless. People will come, open them, and they'll disappear for good. If BetterLoot recognizes them, they'll all be refreshed. I could also use Timed Execute to periodically add 15 barrels or so, but that could clog up the map if people never sign on and destroy them. Thoughts?
     

  14. To be modest about this, i can get the RadomSpanwer to work for me as far as spwaning animals or barrels!
     
  15. Console Commands does only work for the player console.
     
  16. I have been doing the command's in game and nothing happend's,
     
    Last edited by a moderator: Nov 21, 2015
  17. What exactly did you write?
     


  18. /rspawn the amount i want 10 and the prefab without the "" at the end of it!
    The hole texts of the thing i wanted to spawn after that
     
  19. I mean exactly. With the amount you used and the prefab
     



  20. Yes everything and not thing happens i dont see the wolfs spwan at all
    This just like the other dude that has posted here

    rspawn 15 assets/bundled/prefabs/autospawn/resource/loot/loot-barrel-1.prefab nothing comes up after i hit enter

    I am starting up my server right now