ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
208 stars 24 forks source link

fix a typo #319

Closed ghost closed 3 years ago

ghost commented 3 years ago

I was going to report an issue for this. But I found out what the problem was, and after modifying and compiling it, it worked fine for me, so I created this PR, hope you don't mind.

OSTW code:

rule: 'My Rule'
if (IsButtonHeld(HostPlayer(), Button.Interact))
{
    PlayEffect(AllPlayers(), PlayEffect.AnaBioticGrenageNoHealingSound, Color.Team1, Vector(0, 0, 0), 200);
}

Workshop script:

variables
{
    global:
        0: _extendedGlobalCollection
        1: _arrayBuilder
    player:
        0: _extendedPlayerCollection
}

// Extended collection variables:
// global [0]: _arrayBuilderStore

// Class identifiers:

rule("My Rule")
{

    event
    {
        Ongoing - Global;
    }

    conditions
    {
        Is Button Held(Host Player, Button(Interact)) == True;
    }

    // Action count: 1
    actions
    {
        Play Effect(All Players(Team(All)), Ana Biotic Grenage No Healing Sound, Color(Team 1), Subtract(Left, Left), 200);
    }
}

Error when paste this in game: 1

Protowalker commented 3 years ago

danke