Author Topic: OnOwnerDeath - Possible?  (Read 1036 times)

I know "OnPlayerDeath" has been requested before, and been turned down because "a brick can't die", but what about if the owner of the brick dies? Could there be some sort of "OnOwnerDeath" event? We have owner events, so I don't see why not. Of course, I'm not a scripter, so I have no idea what I'm talking about.

I think "OnPlayerDeath" would be great for L4D games and "OnOwnerDeath" would be just as good

I want them both now

yah its possible, ask some scripter like Truce or Chrono though.
Id make it, yet, i have no scripting experience
i have LUA scripting experience
not blockland scripting experience.

First post =D

Warning - while you were typing a new reply has been posted. You may wish to review your post.
omfg so anoying....

I think "OnPlayerDeath" would be great

been turned down because "a brick can't die"

It won't work.

Warning - while you were typing a new reply has been posted. You may wish to review your post.
omfg so anoying....

Then turn it off.

yah its possible, ask some scripter like Truce or Chrono though.
Id make it, yet, i have no scripting experience
i have LUA scripting experience
not blockland scripting experience.

First post =D

Warning - while you were typing a new reply has been posted. You may wish to review your post.
omfg so anoying....


It won't work.
It doesnt matter if the brick cant die. If a player dies, and any player, it could do something. Like cause an explosion
No brick death needed


It doesnt matter if the brick cant die. If a player dies, and any player, it could do something. Like cause an explosion
No brick death needed

What I'm saying is whenever OnPlayerDeath is requested, the answer always seems to be no.

http://forum.blockland.us/index.php?topic=81127.0
http://forum.blockland.us/index.php?topic=74743.0
http://forum.blockland.us/index.php?topic=67472.0
http://forum.blockland.us/index.php?topic=50533.0

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.

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.

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.


...What?

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.

So the issue is basically too many things to check in a short amount of time?

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.

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.
« Last Edit: August 28, 2009, 10:36:27 AM by Ephialtes »

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.

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!