MantisBT - Zandronum
View Issue Details
0003215Zandronum[All Projects] Bugpublic2017-08-02 11:392017-08-02 12:17
doomjoshuaboy 
 
lowtextalways
closedinvalid 
3.0-beta 
 
0003215: a few bugs with acs
For some reason, i tried to add a script that was improved a lot:

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(35*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);
}

but gives me script errors

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.

No tags attached.
png Screenshot_Doom_20170802_213250.png (136,045) 2017-08-02 11:39
/tracker/file_download.php?file_id=2167&type=bug
png

png Screenshot_Doom_20170802_214353.png (1,094,109) 2017-08-02 11:45
/tracker/file_download.php?file_id=2168&type=bug
Issue History
2017-08-02 11:39doomjoshuaboyNew Issue
2017-08-02 11:39doomjoshuaboyFile Added: Screenshot_Doom_20170802_213250.png
2017-08-02 11:45doomjoshuaboyFile Added: Screenshot_Doom_20170802_214353.png
2017-08-02 11:47doomjoshuaboyNote Added: 0018135
2017-08-02 12:17DuskNote Added: 0018136
2017-08-02 12:17DuskStatusnew => closed
2017-08-02 12:17DuskResolutionopen => invalid

Notes
(0018135)
doomjoshuaboy   
2017-08-02 11:47   
please ignore the first one use the second one, sorry about that
(0018136)
Dusk   
2017-08-02 12:17   
Please use the forums for editing questions.