Siegh
Thronar Developer
Hi!
I'm working on developing a kind of "chain lightning" kind of effect for a spell. How can I have a function do something like this:
I'm ok with the repeating part, ignoring players etc, what I'm having trouble with is the checking for creatures in a certain area and randomize one of them if tied.
Thanks in advance
I'm working on developing a kind of "chain lightning" kind of effect for a spell. How can I have a function do something like this:
Code:
Execute combat on initial target
Check for closest creature in up to 1sqm distance (randomize if tied creatures)
After a tiny delay (about 200ms for visibility), execute combat on the next selected creature
Repeat up to a certain amount of times
Ignores players unless in a pvp area
I'm ok with the repeating part, ignoring players etc, what I'm having trouble with is the checking for creatures in a certain area and randomize one of them if tied.
Thanks in advance