IÂ've edited a script that creates random artillery in MP.
I place a GameLogic (GL1) on the map,as startpoint and I use a maximum range for the inpact of the next explosion.
Visual sight from top:
Say I use max = 1000m,the position of the next impact is:
?(local server):xpara = (random Max);PublicVariable "xpara"
~0.7
?(local server):ypara = (random Max);PublicVariable "ypara"
Then I add the random generated x and y parameters to GL1 position...etc
But Random max will allways return a positive value between 0 and 1000,so the impact will allways happen in quadrant 1 (1/4th of the circle.)
To fix this,I run the code 4 times,and add manually the minus so I have:
xpara xpara -xpara -xpara
ypara -ypara ypara -ypara
The explosions will now cover the whole circle
My question :Is there something available so I dont have to run it 4 times and save PublicVariables?Hope I explained myself good enough..