Alright thanks both of you!
I’m still a bit confused here how to set this up, honestly.
So i have a Rule that checks if variable “using laser” is true.
When that rule is true, it will execute a damage over time, an effect, and then set itself to false again “using laser = false”
Using laser will become true for the event player that picks up an effect in a unique vector, or just make it simple, Pressing Right click.
Now how would i make it so that the player that have the using laser variable enabled is the attacker, and the rule with the effects targets another player?
here is a messy example:
rule(“Laser”)
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Event Player.UsingLASER == True;
Last Of(Sorted Array(All Living Players(All Teams), Current Array Element)) == Event Player.CurrentCPLOC;
}
actions
{
Start Damage Over Time(Event Player, Null, 4, 15);
Small Message(Event Player, Custom String("Atacked by Orbital Laser"));
Create Beam Effect(All Players(All Teams), Bad Beam, Event Player, Vector(0, 1500, 0), Red, Visible To Position and Radius);
Play Effect(Event Player, Buff Explosion Sound, White, Event Player, 150);
Set Status(Event Player, Null, Stunned, 4);
}
}
Could this rule be used or wont work?:
conditions
{
Event Player == Last Of(Sorted Array(All Living Players(All Teams).CurrentCPLOC, Current Array Element));
}