57
edits
imported>Arthmoor |
GrandBulwark (talk | contribs) |
||
| Line 7: | Line 7: | ||
I'd hardly be surprised that it doesn't trigger OnReset() since that's not even in Quest.psc OR in Alias.psc so the event can't even exist, much less be triggered, since OnReset() only exists in ObjectReference.psc and neither of these others extend that. [[User:Arthmoor|Arthmoor]] ([[User talk:Arthmoor|talk]]) 2013-12-07T16:50:28 (EST) | I'd hardly be surprised that it doesn't trigger OnReset() since that's not even in Quest.psc OR in Alias.psc so the event can't even exist, much less be triggered, since OnReset() only exists in ObjectReference.psc and neither of these others extend that. [[User:Arthmoor|Arthmoor]] ([[User talk:Arthmoor|talk]]) 2013-12-07T16:50:28 (EST) | ||
:Uh. Stranger still though, OnReset() will compile without complaint in a script extending either Quest or Alias, even though neither one has a definition for OnReset() listed. Anyone else confused? :P [[User:Arthmoor|Arthmoor]] ([[User talk:Arthmoor|talk]]) 2013-12-07T16:57:03 (EST) | :Uh. Stranger still though, OnReset() will compile without complaint in a script extending either Quest or Alias, even though neither one has a definition for OnReset() listed. Anyone else confused? :P [[User:Arthmoor|Arthmoor]] ([[User talk:Arthmoor|talk]]) 2013-12-07T16:57:03 (EST) | ||
-not to necro a dead thread here. but no, this is not confusing. You can declare custom events that aren't in the parent's hierarchy(IE OnReset() on a quest script) and then call yourself like a regular function - in fact you can call instance local copies of vanilla events in such a manner(OnLoad, OnCellAttach, etc). The only time you cannot add an event or function to a child script with a given signature is if that signature is used in a parent script - and your return type or parameters are mismatched. | |||
[[User:GrandBulwark|GrandBulwark]] | |||
edits