For some reason, I tried to add a script that was improved a lot:
Code: Select all
Script "RandomWeaponGenerator" ENTER
{
    str Weapons[3] = {"railgun", "minigun", "plasmarifle"};
    while (true)
    {
        int Rand = random(0, 2);
        GiveInventory(Weapons[Rand], 1); //Gives a random weapon from the weapons array. Indexing starts from 0 to ArrayElements - 1.
        Print(s:"The gods have gifted you with ", s:Weapons[Rand], s:".");
        Delay(35problem *10); //10 seconds.
    }
}
Script "ChangeGrav" (void)
{
    if (GetActorProperty(0, APROP_Gravity) == 0.5)
        SetActorProperty(0, APROP_Gravity, 1.0);
    else
        SetActorProperty(0, APROP_Gravity, 0.5);
}
and when I tried toggle change it to low gravity as I jumped, didn't work, the script name works but the gravity didn't change.

DoomJoshuaBoy

