[DiscordArchive] Would this work fine, or is there a better way?
[DiscordArchive] Would this work fine, or is there a better way?
Archived author: Sylian • Posted: 2024-05-19T11:46:02.462000+00:00
Original source
Will do that now.
Archived author: Sylian • Posted: 2024-05-19T12:47:06.183000+00:00
Original source
So, now I am stuck again.
How can I hook a function that is connected to the Unit script when I need to return a player back to it somehow.
![[Image: image.png?ex=690bf0bc&is=690a9f3c&hm=109...4c02bbcb1&]](https://cdn.discordapp.com/attachments/284323424032129024/1241734624477052999/image.png?ex=690bf0bc&is=690a9f3c&hm=10903738422f48e38c6c3d64af47a57813ddfa4fe12c8a502f3bb424c02bbcb1&)
Archived author: Sylian • Posted: 2024-05-19T12:50:04.774000+00:00
Original source
Since I would need to make the event trigger here, and not in the UpdateAllStats, since here I would be able to do it before everything else gets added onto it.
Also, sometimes it doesnt call the UpdateAllStats when working with adding buffs and so on. So I guess it would be important to add it here.
![[Image: image.png?ex=690bf0bc&is=690a9f3c&hm=109...4c02bbcb1&]](https://cdn.discordapp.com/attachments/284323424032129024/1241734624477052999/image.png?ex=690bf0bc&is=690a9f3c&hm=10903738422f48e38c6c3d64af47a57813ddfa4fe12c8a502f3bb424c02bbcb1&)
Archived author: Sylian • Posted: 2024-05-19T12:51:29.382000+00:00
Original source
But since this is a unit script and not a player script, I cant just return the player. I know the player also has everything from the unit,
But how would I add new events for it for Eluna, since I cant seem to find anywhere you can add events for just units.
![[Image: image.png?ex=690bf128&is=690a9fa8&hm=c38...3c8c182de&]](https://cdn.discordapp.com/attachments/284323424032129024/1241735074257305660/image.png?ex=690bf128&is=690a9fa8&hm=c38f9ab90ecbc95b544300adf34145bafe6834c4a0f1940765d54443c8c182de&)
Archived author: Sylian • Posted: 2024-05-19T12:51:52.080000+00:00
Original source
![[Image: image.png?ex=690bf128&is=690a9fa8&hm=c38...3c8c182de&]](https://cdn.discordapp.com/attachments/284323424032129024/1241735074257305660/image.png?ex=690bf128&is=690a9fa8&hm=c38f9ab90ecbc95b544300adf34145bafe6834c4a0f1940765d54443c8c182de&)
Archived author: Sylian • Posted: 2024-05-19T12:52:14.386000+00:00
Original source
Like I cant see any "enum Unit", so where would I place my event for it?
Archived author: Foe • Posted: 2024-05-19T12:52:21.897000+00:00
Original source
A player is a unit
Archived author: Sylian • Posted: 2024-05-19T12:52:55.242000+00:00
Original source
Yes, I know that, but isnt it a bad idea to place the event inside the enum for the playerevents?
Archived author: Foe • Posted: 2024-05-19T12:52:55.744000+00:00
Original source
Just cast it to a player
Archived author: Foe • Posted: 2024-05-19T12:53:02.972000+00:00
Original source
No, it doesn't matter