szaumoor Posted August 11, 2022 Share Posted August 11, 2022 (edited) So I decompiled some .pex files from a mod and I think the decompiler marks "events" in the original code as "functions" in the decompiled code. So, can this break things completely if I recompile it and use it like that? I know nothing about papyrus, so I need some help. I don't want to be breaking things. Edited August 11, 2022 by szaumoor Link to comment Share on other sites More sharing options...
dylbill Posted August 11, 2022 Share Posted August 11, 2022 I would change the functions that are events to events. All events that I know of start with On. Example: Change Functon OnInit() ;code here stays the sameEndFunction To Event OnOnit() ;code here stays the sameEndEvent Link to comment Share on other sites More sharing options...
IsharaMeradin Posted August 11, 2022 Share Posted August 11, 2022 Already mentioned in the other thread, so I will be brief. There is no difference between a function and an event as far as Papyrus is concerned. The event label is for code writers to know which functions are triggered by the game engine. Link to comment Share on other sites More sharing options...
Recommended Posts