| Blockland Forums > Modification Help |
| FarmMod |
| << < (3/5) > >> |
| FFSO:
Lol this Coding Help topic is turning into a drama between Ephialtes and cheese6 |
| Freebuild:
--- Quote from: Ephialtes on November 20, 2011, 05:57:47 AM --- --- Code: ---else if(%datablock.growth = 1) --- End code --- Really? --- End quote --- Well, how else would I keep track of growth? I'm trying to make this to the point where it can become a usefull add-on for everyone to use. Also, I'm sure its activate, not onActivate. This isn't events here |
| Freebuild:
I might just try changing it all. Gimme a sec. And this is a stuff load better then the crap I used to try to post on RTB forums, correct? EDIT: I changed it. These are the things I changed. --- Code: ---FarmRPGBlueberryData::onPlant(%datablock, %client) --- End code --- And --- Code: ---FarmRPGBlueberryData::onActivate(%datablock, %client) --- End code --- I am starting to think that I am turning the variables wrong in --- Code: ---(%datablock, %client) --- End code --- Because I don't really think the "%datablock" records the object number. I'm ficklefarkled in my corn stalk :) |
| Headcrab Zombie:
--- Quote from: Freebuild on November 20, 2011, 12:03:54 PM ---Well, how else would I keep track of growth? I'm trying to make this to the point where it can become a usefull add-on for everyone to use. --- End quote --- The object, not the datablock --- Quote from: Freebuild on November 20, 2011, 12:03:54 PM ---Also, I'm sure its activate, not onActivate. This isn't events here --- End quote --- If you want it to do something when you click it, it's onActivate (which I believe also requires an onActivate event on the brick for it to even be called) If you don't want it to do something when you click it, then your function name is misleading --- Quote from: Freebuild on November 20, 2011, 12:03:54 PM --- --- End quote --- ::onPlant has two argument:, the datablock, and the individual brick ::onActivate has five arguments: the brick, the player who clicked it, the client who clicked it, the position of the brick, and some sort of vector that I'm not sure what it means |
| Freebuild:
You're handicapped if you really think you need an "onActivate event" to make it be called. That would have nothing to do with that, think about what your saying and if it sounds right and would be true. |
| Navigation |
| Message Index |
| Next page |
| Previous page |