I am trying to make a small radius around a player when they use their second ability and then expand that radius, The only way I could come up with to do this is by making 2 player variables, 1 for the starting position and 1 for the end position and using chase player variable but I haven’t found anyway to Store a radius in a variable, does anyone know how to do this?
Your expectations sound simple.
Call CreateEffect() with “player position”, “radius variable” and “EffectRev.PositionAndRadius” as arguments.
After that, use ChaseVariable() to change the initial “radius variable” to extended size.
Doesn’t this method give the expected result?
What is “radius variable” and “EffectRev.PositionAndRadius?” I can’t find anything like them in the workshop
I made a simple sample
Is it helpful?
variables
{
player:
0: effectRadius
}
rule("TestCode")
{
event
{
Ongoing - Each Player;
All;
All;
}
conditions
{
Has Spawned(Host Player) == True;
}
// Action count: 4
actions
{
Set Player Variable(Event Player, effectRadius, 5);
Create Effect(All Players(All Teams), Sphere, Color(Yellow), Host Player, Player Variable(Event Player, effectRadius), Position And Radius);
Wait(3, Ignore Condition);
Chase Player Variable At Rate(Event Player, effectRadius, 10, 1, Destination And Rate);
}
}