[DiscordArchive] I've placed it in a world script. Would that make it break?
[DiscordArchive] I've placed it in a world script. Would that make it break?
Archived author: Honey • Posted: 2023-01-05T20:10:54.962000+00:00
Original source
I've placed it in a world script. Would that make it break?
Archived author: Revision • Posted: 2023-01-05T20:10:56.544000+00:00
Original source
If it says it has nothing to override with override defined, it would do nothing without it either then (if what you said is true).
Archived author: Revision • Posted: 2023-01-05T20:11:12.622000+00:00
Original source
I'm not sure WorldScript inherits from GlobalScript.
Archived author: Rymercyble • Posted: 2023-01-05T20:11:28.109000+00:00
Original source
if there is nothing to override it will be just new method....if there is something to override it will override even without override keyword
Archived author: Rymercyble • Posted: 2023-01-05T20:11:47.871000+00:00
Original source
override keyword is there so u explicitly see that its overriding something and to help debug when error happens
Archived author: Revision • Posted: 2023-01-05T20:11:58.522000+00:00
Original source
So in other words, use override at all times.
Archived author: Rymercyble • Posted: 2023-01-05T20:12:02.214000+00:00
Original source
yes
Archived author: Revision • Posted: 2023-01-05T20:12:25.746000+00:00
Original source
But I think the hook in question needs to be in a GlobalScript or if you can somehow inherit the hooks from that one which I have absolutely no idea if you can do.
Archived author: Revision • Posted: 2023-01-05T20:13:05.641000+00:00
Original source
An example of a GlobalScript: https://github.com/azerothcore/mod-progr...ts.cpp#L22
Archived author: Honey • Posted: 2023-01-05T20:13:21.458000+00:00
Original source
i'm compiling. Thanks for the pointers, guys