Get Keyvalue With Script
Passing values to a script can be as easy as putting a value inside a RunScriptCode or by naming a certain entity (using the EntityGroup[] values in a logic_script).
To make things simple I would just pre-define these values based on which cube it is. e.g. the cube named Cube1 can be referenced in the script within an 'if' or 'switch' statement which grabs the name of it and assigns in another value to your wanted radius.
if(foundEntity.GetName() == "cube1")
{
local cubeRadius = 256
}
elseif(foundEntity.GetName() == "cube2")
{
...
)
...
switch (foundEntity.GetName())
{
case "cube1":
local cubeRadius = 256
break
case "cube2":
local cubeRadius = 1024
break
case ...
}You can then either use this for your wanted function or you could save it for later (or continuous use).