power = rand(2);
if (power!=1)
{
power = rand (2);
if (power!=1)
{
power = rand(2);
if (power!=1)
{
CreateActor("PuPDoubleShot", "Harp", "(none)", "(none)", 0, 0, false);
}
}
}
power = rand (10);
if (power=1)
{
createactor
}
TSO wrote:I tried a much shorter code.
- Code: Select all
power = rand (10);
if (power=1)
{
createactor
}
switch with things like if (power!=1) and the results was if statement always firing...
Annoying...
power = rand (10);
if (power==1) //See this line!!
{
createactor
}
Users browsing this forum: No registered users and 1 guest