[DiscordArchive] is that one of those things that you can duplicate if needed ?
[DiscordArchive] is that one of those things that you can duplicate if needed ?
Archived author: jackpoz • Posted: 2024-03-09T19:09:21.528000+00:00
Original source
is that one of those things that you can duplicate if needed ?
Archived author: Telegrill • Posted: 2024-03-09T19:11:20.842000+00:00
Original source
you can add a new bit WITH_AURA and add a negative value for it
Archived author: Telegrill • Posted: 2024-03-09T19:11:28.460000+00:00
Original source
if the param is filled
![[Image: image.png?ex=690c4ab3&is=690af933&hm=c0a...86da9f1fd&]](https://cdn.discordapp.com/attachments/376074396915335170/1216101685064241244/image.png?ex=690c4ab3&is=690af933&hm=c0a5fa9621fb237a5e73266361d7ca4f08ebc96bd99e0882bfb697486da9f1fd&)
Archived author: Telegrill • Posted: 2024-03-09T19:13:55.853000+00:00
Original source
sort of
![[Image: image.png?ex=690c4ab3&is=690af933&hm=c0a...86da9f1fd&]](https://cdn.discordapp.com/attachments/376074396915335170/1216101685064241244/image.png?ex=690c4ab3&is=690af933&hm=c0a5fa9621fb237a5e73266361d7ca4f08ebc96bd99e0882bfb697486da9f1fd&)
Archived author: Telegrill • Posted: 2024-03-09T19:16:32.460000+00:00
Original source
just an idea though
Archived author: jackpoz • Posted: 2024-03-09T19:18:17.365000+00:00
Original source
but it's just one of those searchers that you can clone and clone and clone with your specific case
Archived author: Telegrill • Posted: 2024-03-09T19:18:25.616000+00:00
Original source
yeah but there's no point cloning
Archived author: Telegrill • Posted: 2024-03-09T19:19:25.506000+00:00
Original source
in fact Shauren removed most of the overloads for GetClosestCreature in favour of GetClosestCreatureWithOptions for that matter
Archived author: Telegrill • Posted: 2024-03-09T19:20:23.379000+00:00
Original source
that's why I thought of extending the helper rather than creating a new one
ata():Get("Test") or { v = 1 }
ata():Set("Test", newdata)Archived author: Tea • Posted: 2024-03-09T19:22:28.398000+00:00
Original source
<@169121237539356673> ```lua
local function OnMapChange(event, player)
local data = player
ata():Get("Test") or { v = 1 }
player:SendBroadcastMessage("Old data: "..tostring(data))
local newdata = { v = data:Get("v") + 1 } -- is this intended that users cant access .v directly?
player:SendBroadcastMessage("Setting new data to: "..tostring(newdata))
player
ata():Set("Test", newdata)
end
RegisterPlayerEvent(28, OnMapChange)
``` question in comment