Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Some complex issue (SOLVED)
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#6
RE: Some complex issue

That did it. Both Mudbill and TheGreat. What I find weird here though is the fact that I had to delete the alLumpIdx premanently. For some reason it refused to work no matter what I changed. This is how it looks right now.

int iRandom = RandInt(0,2);
    if(iRandom == 0)
    {
        PlaySoundAtEntity("GuardianScream", "25_guardian_ontop.snt", "Player", 0, false);
    }

string sEvent = asTimer; //Sets the timer name to the variable name
    AddLocalVarInt(sEvent, 1); //Sets a variable to the guardians step
    string sDmgDeathArea = "AreaGuardianKill_" + GetLocalVarInt(sEvent); //Sets a new dmg area after each variable
    
    //No need for further steps after 12
    if(GetLocalVarInt(sEvent) == 12) return;

The only thing here now that's making it worse is that the random guardian sound might be played at the first step, but I guess I gotta accept that as it is. Either way, it works. Thanks guys.

Derp.
08-16-2014, 10:41 PM
Find


Messages In This Thread
Some complex issue (SOLVED) - by Neelke - 08-16-2014, 01:19 AM
RE: Some complex issue - by FlawlessHappiness - 08-16-2014, 02:32 AM
RE: Some complex issue - by Neelke - 08-16-2014, 12:07 PM
RE: Some complex issue - by Mudbill - 08-16-2014, 03:44 PM
RE: Some complex issue - by TheGreatCthulhu - 08-16-2014, 07:25 PM
RE: Some complex issue - by Neelke - 08-16-2014, 10:41 PM
RE: Some complex issue (SOLVED) - by Neelke - 08-17-2014, 02:16 PM



Users browsing this thread: 1 Guest(s)