[DiscordArchive] https://elunaluaengine.github.io/Unit/GetAura.html is this invalidated also ?
[DiscordArchive] https://elunaluaengine.github.io/Unit/GetAura.html is this invalidated also ?
Archived author: jackpoz • Posted: 2024-03-10T00:02:14.790000+00:00
Original source
https://elunaluaengine.github.io/Unit/GetAura.html is this invalidated also ?
[Embed: Unit:GetAura - Eluna]
API documentation for the Unit:GetAura method in the Eluna engine.
https://elunaluaengine.github.io/Unit/GetAura.html
Archived author: jackpoz • Posted: 2024-03-10T00:02:52.176000+00:00
Original source
Or can I store an aura in a variable, then despawn the unit, and the variable points to deleted memory ?
Archived author: stoneharry • Posted: 2024-03-10T00:04:06.688000+00:00
Original source
I agree you should construct the API to be intuitive as to what is reasonable to do, but I think it's a fine line between that and being overly protective/restrictive.
Even if you make the API so safe it's almost impossible to crash with a script, people can still write code so horrendously ineffecient it freezes the server or causes world diff spikes. You could probably throttle / quarantine such scripts... but personally I'm more on the side of letting more competent people fully flex the capabilities.
Archived author: Rochet2 • Posted: 2024-03-10T00:05:53.705000+00:00
Original source
All raw pointers are invalidated at end of event. So yes, you can store it in a variable, but if you try to access the variable later it will throw an error to you.
Archived author: Rochet2 • Posted: 2024-03-10T00:06:52.107000+00:00
Original source
by later, I mean in some other event, like storing it on start combat and trying to access it in end combat event.
Archived author: jackpoz • Posted: 2024-03-10T00:07:35.838000+00:00
Original source
The goal is the same as how broken javascript doesn't crash the browser
Archived author: Tea • Posted: 2024-03-10T00:07:51.761000+00:00
Original source
but can freeze it
Archived author: jackpoz • Posted: 2024-03-10T00:08:06.402000+00:00
Original source
Sure, but not crash it
Archived author: Rochet2 • Posted: 2024-03-10T00:08:30.103000+00:00
Original source
With webgl api you can crash the entire PC through web browser. From javascript.
Archived author: Tea • Posted: 2024-03-10T00:08:32.986000+00:00
Original source
but with a freezedetector running thats one and the same