Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003215Zandronum[All Projects] Bugpublic2017-08-02 11:392017-08-02 12:17
Reporterdoomjoshuaboy 
Assigned To 
PrioritylowSeveritytextReproducibilityalways
StatusclosedResolutioninvalid 
PlatformOSOS Version
Product Version3.0-beta 
Target VersionFixed in Version 
Summary0003215: a few bugs with acs
DescriptionFor 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.

Attached Filespng file icon Screenshot_Doom_20170802_213250.png [^] (136,045 bytes) 2017-08-02 11:39


png file icon Screenshot_Doom_20170802_214353.png [^] (1,094,109 bytes) 2017-08-02 11:45

- Relationships

-  Notes
User avatar (0018135)
doomjoshuaboy (developer)
2017-08-02 11:47

please ignore the first one use the second one, sorry about that
User avatar (0018136)
Dusk (developer)
2017-08-02 12:17

Please use the forums for editing questions.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-08-02 11:39 doomjoshuaboy New Issue
2017-08-02 11:39 doomjoshuaboy File Added: Screenshot_Doom_20170802_213250.png
2017-08-02 11:45 doomjoshuaboy File Added: Screenshot_Doom_20170802_214353.png
2017-08-02 11:47 doomjoshuaboy Note Added: 0018135
2017-08-02 12:17 Dusk Note Added: 0018136
2017-08-02 12:17 Dusk Status new => closed
2017-08-02 12:17 Dusk Resolution open => invalid






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker