Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is glow limited to only 4 entities? #8

Open
meszaros-lajos-gyorgy opened this issue Jul 23, 2022 · 1 comment
Open

Why is glow limited to only 4 entities? #8

meszaros-lajos-gyorgy opened this issue Jul 23, 2022 · 1 comment

Comments

@meszaros-lajos-gyorgy
Copy link
Collaborator

meszaros-lajos-gyorgy commented Jul 23, 2022

I have a custom npc that has the following event to trigger glowing:

// npc
ON GLOW {
  if (^$param1 == "on") {
    HALO -ocs 0.8 1 1 30 // [o] = active, [c] = color, [s] = radius
  } else {
    HALO -f // [f] = inactive
  }
  ACCEPT
}

All npcs are in the group of bots so I can send them events all in one go.

sendevent -g bot glow on

will only make the first 4 entities get halos, all others will stay without a halo:
image

What is the reason for this limitation and how can it be increased?

@meszaros-lajos-gyorgy
Copy link
Collaborator Author

It changes depending on where I stand, sometimes a guard only gets half a glow:
image

The behavior of HALO is not documented: https://wiki.arx-libertatis.org/Script:halo
The source code might give info on how it works: https://github.com/arx/ArxLibertatis/blob/master/src/script/ScriptedIOProperties.cpp#L445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant