Arma 2: Operation Arrowhead

Arma 2: Operation Arrowhead

SCRIPTING PRESENCE CONDITION BASED ON A RANDOMM NUMBER
Hello Everyone

What I am trying to do on the editor is to spawn certain units according to a random number.
So I create a unit which presence condition is "alfa"
I create another unit which presence condition is "beta"

And now I place some triggers and in their "on activation" boxes I write the following:
u=random 3;
if (u>1) then {alfa=true} else {beta=true};

And it does not work. Does anybody knows why? The random number in u is correctly generated because I just hace checked it with:

hint format["the random number calculated is %1",u];

So here is not the problem. The problem must be that 'if-else' statement and I do not know why.

Thanks!
< >
Showing 1-2 of 2 comments
GHOST 11 Mar, 2022 @ 3:54pm 
all the questions of this type and more complex things in general it is always better that you do them in the official forum, since in steam the majority who look at the threads only know how to play kill zombies or play takistan life or things like that, the scripting geniuses to put it in some way you will find them in the official forum, here on steam it is difficult for them to answer things like that, in my case my knowledge of scripting is very limited if not almost nil, otherwise I would help you without problems.

https://forums.bohemia.net/forums/forum/91-arma-2-oa-addons-configs-scripting/

in the official forum you will get an easier answer than here.
Last edited by GHOST; 11 Mar, 2022 @ 3:55pm
Copperfield [SAC] 12 Mar, 2022 @ 12:17am 
beside that forum, Ghost mentioned it. you can also hop on Arma official discord, there's this channel #Scripting which is dedicated for questions and answers, sometimes you get instant response from others. you also see familiar faces like developers of JSRS in that discord.
Link : https://discord.gg/arma
Last edited by Copperfield [SAC]; 12 Mar, 2022 @ 12:17am
< >
Showing 1-2 of 2 comments
Per page: 1530 50