Blockland Forums > Modification Help

FarmMod

Pages: << < (5/5)

Freebuild:

Yeah. OnActivate is already a function, the event doesn't really have a function like that. Its a little different.

Headcrab Zombie:


--- Quote from: Uristqwerty on November 20, 2011, 09:34:02 PM ---Did a bit of testing, and with freshly placed, event-free blocks, onActivate was indeed called, and the last argument appeared to the the player's eye vector at the time.

After a few more quick tests, it appears that onActivate is called every time (though I may be missing an obscure corner case or two. Unlikely.), but ProcessInputEvent is only called if the block has at least one input event, which does the actual work of checking any quotas and if there even is a matching event on the block.

So, from my limited empirical evidence, onActivate is reliable regardless of what events the brick actually has.

--- End quote ---
Yeah I guess I was thinking of onPlayerTouch

Freebuild:

That still doesn't matter, any default event like that is already a function for the brick data, the event side a whole side of other crap.

Freebuild:


--- Quote from: Uristqwerty on November 20, 2011, 09:34:02 PM ---Did a bit of testing, and with freshly placed, event-free blocks, onActivate was indeed called, and the last argument appeared to the the player's eye vector at the time.

After a few more quick tests, it appears that onActivate is called every time (though I may be missing an obscure corner case or two. Unlikely.), but ProcessInputEvent is only called if the block has at least one input event, which does the actual work of checking any quotas and if there even is a matching event on the block.

So, from my limited empirical evidence, onActivate is reliable regardless of what events the brick actually has.

--- End quote ---

You know, I like you. You're not acting like a handicap, not posting drama on this topic, and you're actually helping me. You're one of the rare people I actually find around on the internet. And you're pretty smart.

Destiny/Zack0Wack0:


--- Quote from: Freebuild on December 26, 2011, 02:25:09 PM ---You know, I like you. You're not acting like a handicap, not posting drama on this topic, and you're actually helping me. You're one of the rare people I actually find around on the internet. And you're pretty smart.

--- End quote ---
You know, I think you're a moron. You're acting like a handicap, posting drama in this topic when someone was trying to help you (Headcrab DID NOT say anything rude to you, you came back at him harsh for no reason when he just tried to help). You're one of the most common tier of person on the internet. And you're a dumbass.

Do not come to Coding Help to attack people when they try to help you. There was a point in time when onActivate was not called when there were no events set, so obviously it's been changed.


--- Quote from: Freebuild on November 23, 2011, 12:57:37 PM ---That still doesn't matter, any default event like that is already a function for the brick data, the event side a whole side of other crap.

--- End quote ---
No, they are incredibly related.

Pages: << < (5/5)

Go to full version