Blockland Forums > Modification Help
Event: onPlayerFirstSpawn not working
<< < (2/6) > >>
xXBeibsFan119Xx:

--- Quote from: Mordius on May 05, 2012, 05:59:21 PM ---Hey BeibsFan, thanks for the "compliment". TorqueScript is pretty unfamiliar to me and I've actually never done anything remotely like it, so could you explain a little more? I guess you could call me a "noob".

--- End quote ---

%brick isn't an implicit variable. So you can't just use it without declaring it.
Mordius:
BeibsFan: Naturally, that's common to most programming languages. However, how would I go about finding the value of %brick in this case?
Ipquarx:

--- Quote from: Mordius on May 05, 2012, 07:37:39 PM ---how would I go about finding the value of %brick?
--- End quote ---

--- Quote from: xXBeibsFan119Xx on May 05, 2012, 06:01:43 PM ---you can't use it without declaring it.
--- End quote ---
I think that explains itself.

More specifically, this is a bad idea, because it could be easily abused, as there is no implied target it would have to call EVERY SINGLE BRICK IN THE SERVER.

Unless there is a specific target, like I said, generally not a good idea to loop call a function to 59384 bricks at the same time. Especially if it's a busy server.
elm:

--- Quote from: Ipquarx on May 05, 2012, 07:46:35 PM ---I think that explains itself.

More specifically, this is a bad idea, because it could be easily abused, as there is no implied target it would have to call EVERY SINGLE BRICK IN THE SERVER.

Unless there is a specific target, like I said, generally not a good idea to loop call a function to 59384 bricks at the same time. Especially if it's a busy server.

--- End quote ---


--- Quote from: xXBeibsFan119Xx on May 05, 2012, 05:00:57 PM ---Nope. Just hook in to the addEvent/removeEvent or whatever methods, check if it's the event, and add the brick to a list, which the method above would loop through.

--- End quote ---
Mordius:
Ipquarx, what do you mean by no implied target? If I put an event on the brick, does the event know which brick is on? There's no "backlink", "super", "uber", or "parent" or anything like that for an instantiated event on a brick?

If that's not the case is there any way at all to tie an event to a client's first spawn? There must be, somewhere.
Navigation
Message Index
Next page
Previous page

Go to full version