• Content Count

  • Joined

  • Last visited

Community Reputation

10 Good

About MalusNox

  • Rank
    Junior Member

Recent Profile Visitors

49 profile views
  1. @Friendly Grass I'm very new to LUA and syntax will get you every time, no matter what language I wish there was a DST code syntax manual or something lol... After more testing I think the fixed original version (simplified with correct syntax) is the way to go as it will only remove the buzzard spawn you're standing at and hopefully nothing else. The goal is to remove only specific buzzard spawners and not all of them. I tested both versions using Buzzard and Meteor Spawners again and using the GetClosestInst version gives a nil value error if you're out of range of a buzzardspawner (range I believe is basically wall sections so 5 is a very small radius, I'm guessing 4 would be 1 pitchfork tile), while the c_findtag version removes the next buzzardspawner it finds no matter the distance. to remove all buzzard spawners why not just use c_removeall("buzzardspawner") thanks again, it looks like we'll crack this one yet lol I wonder if I should edit the OP with the final version of the code once we figure it out lol...
  2. Any reason not to use the RemoveEntity(#) function? it works using the numbers provided by c_gonext("buzzardspawner").
  3. @Friendly Grass during my initial testing I was using c_selectnear and it didn't work, c_selectnext does work but it removes the next spawn instead of the one you're standing at, not a big issue with proper planning but currently the best way I'm aware of because of the unintended issue described below. The c_find to remove the stuck shadow animation works nicely c_selectnext("buzzardspawner"):Remove() c_find(“circlingbuzzard”):Remove() @penguin0616 I'm new to LUA code and you're correct it doesn't work entirely as intended, I tested it with a MeteorSpawner which only has the classified tag and it removed it, so I guess the SelectNext method mentioned above is the better way to do it. What I was trying to do was search for an entity with both tags using "and" so it would only select an entity with both the "buzzardspawner" and "CLASSIFIED" tags because my code doesn't work without the Classified tag, it returns a nil value error with only "buzzardspawner" but it works with both tags. When I looked in the "buzzardspawner.lua" file in prefabs it adds both tags in the CreateEntity function so that's why I tried using both. I wanted to make it only remove the 1 buzzard spawner you're standing at and nothing else. Thank you
  4. Long time reader, first time posting code so I'm hoping someone with more experience could let me know if there's a better way to do it? So I would like to remove a problem Buzzard spawner from my existing world, similar to archived thread: While trying to figure out how I found a method to remove Meteor spawns (posted by @ADM in I altered the code for buzzard spawns and it seems to work fine with only one slight issue in that if a buzzard is flying overhead the shadow just stops moving and doesn't go away until disconnecting & restarting the server. It's a 2 step process: First you need to stand directly under the buzzard spawner map icon or use the Go Next command to teleport to the buzzard spawner you want to remove: c_gonext("buzzardspawner") Don't move after teleporting to the buzzard spawner you want to remove and run the following code: GetClosestInstWithTag({"buzzardspawner", "CLASSIFIED"}, ThePlayer, 5):Remove() That's it, the buzzard spawner icon should be removed from the map and once you deal with any buzzards on the ground no more will spawn. I look forward to any feedback, thank you