[DiscordArchive] also why does SendWorldMessage send messages twice?
[DiscordArchive] also why does SendWorldMessage send messages twice?
Archived author: Orion • Posted: 2023-10-15T22:47:29.428000+00:00
Original source
also why does SendWorldMessage send messages twice?
Archived author: Honey • Posted: 2023-10-15T23:20:05.196000+00:00
Original source
pasting actual code instead of pictures is always a better idea because people can copy and adjust it more easily.
What i'd do is add this at the top of your function:
```lua
print("OnEnterCombat")
if creature then
print("creature: "..creature:GetName().." has entered combat.")
end
if target then
print("target: "..target:GetName().." has entered combat.")
end
```
That way you can debug the behavior. The print messages will appear in the worldserver console.
Archived author: Honey • Posted: 2023-10-15T23:20:31.523000+00:00
Original source
As for SendWorldMessage, check if you run 2 scripts. i don't think it displays things twice.