Difference between revisions of "Events Reference"
Unprofessional writing
m (Encourage early returns instead of nested IFs, change wording slightly) |
(Unprofessional writing) |
||
Line 33: | Line 33: | ||
Events are not like the old block types. When you make an event in your script that extends ObjectReference or ReferenceAlias you are essentially creating a new version of that event, and you need to declare it with the same number of parameters. Those parameters are then used inside the script. | Events are not like the old block types. When you make an event in your script that extends ObjectReference or ReferenceAlias you are essentially creating a new version of that event, and you need to declare it with the same number of parameters. Those parameters are then used inside the script. | ||
You should pretty much just copy and paste the events straight from the wiki, unless you desire to change the name of the parameters for some reason | You should pretty much just copy and paste the events straight from the wiki, unless you desire to change the name of the parameters for some reason. | ||
For example: | For example: |