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
error in "for" ?
Kreekakon Offline
Pick a god and pray!

Posts: 3,063
Threads: 70
Joined: Mar 2012
Reputation: 124
#2
RE: error in "for" ?

Try putting brackets around what goes in the if, like so

If(HasItem("glass_container_mix_done"))

{
for(int i=1;i<=22;i++)

{

SetEntityActive("Slime_"+i, true);

PlaySoundAtEntity("", "guardian_activated1.ogg", "Player", 0, false);

StartScreenShake(0.1, 8, 2, 2);

SetEntityActive("SlimeDamageArea_1", true);

SetEntityActive("SlimeDamageArea_2", true);

SetEntityActive("SlimeDamageArea_3", true);

SetEntityActive("SlimeDamageArea_4", true);

}

}

Also, from what I see so far, SetEntityActive("Slime_"+i, true); is the only script that really has any business being in the for.

[Image: Tv0YgQb.gif]
Image by BandyGrass
(This post was last modified: 10-06-2012, 03:41 PM by Kreekakon.)
10-06-2012, 03:39 PM
Find


Messages In This Thread
error in "for" ? - by Lizard - 10-06-2012, 03:24 PM
RE: error in "for" ? - by Kreekakon - 10-06-2012, 03:39 PM
RE: error in "for" ? - by Lizard - 10-06-2012, 03:49 PM
RE: error in "for" ? - by The chaser - 10-06-2012, 04:02 PM
RE: error in "for" ? - by Ongka - 10-06-2012, 03:44 PM
RE: error in "for" ? - by The chaser - 10-06-2012, 03:44 PM
RE: error in "for" ? - by Ongka - 10-06-2012, 03:49 PM
RE: error in "for" ? - by Lizard - 10-06-2012, 04:04 PM



Users browsing this thread: 1 Guest(s)