| Blockland Forums > Suggestions & Requests |
| OnOwnerDeath - Possible? |
| << < (3/6) > >> |
| Regulith:
--- Quote from: Radioactive Cat on August 28, 2009, 07:42:05 AM ---Yeah, completely possible. All you need to do is find the event onplayerdeath=> and make a new folder making it onownerdeath=>. But I dont see any use for this. Maybe. --- End quote --- ...What? --- Quote from: Ephialtes on August 28, 2009, 09:00:27 AM ---This would be impractical. It's very different from onPlayerDeath. You'd have to check all the bricks a player owns each time they die to see if they have an onOwnerDeath event that needs to be called. Won't happen. --- End quote --- So the issue is basically too many things to check in a short amount of time? |
| AGlass0fMilk:
But it can happen. You could parent the send command on the wrench DLG, and if the events have OnOwnerDeath, you can add them to a simset. Then when someone dies, loop through the simset if there are any bricks in it, and execute the event on that brick that has OnOwnerDeath as the input. Not too many loops methinks >> Unless he has like a 1,000 bricks like that. Possible. |
| Ephialtes:
That's a horrible hack, certainly not something that would make it as a default event in Blockland. Players can have upwards of 20k bricks in their brick group, looping through all of those, then looping through all the events within each of those will quickly inflate the size of the loops. This then leaves a really possibility for someone to place 50k bricks, then make some event spam to repeatedly kill themselves. Bye bye server. Possible but impractical. Just because something is possible, doesn't make any sort of an argument for it to be done. |
| AGlass0fMilk:
Who would event 20 thousand bricks? Not that I want to make it, but maybe it should have a limit? RTB pref that needs server restart maybe. |
| Chrono:
Whether or not the 20 thousand bricks are evented, the system must check all of the owner's bricks in order to see if the brick is evented! |
| Navigation |
| Message Index |
| Next page |
| Previous page |