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" ?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#4
RE: error in "for" ?

////////////////////

//When entering map

void OnEnter()

{
Spoiler below!


//Slime

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);

}



//Keys

AddUseItemCallback("", "CellerKey", "level_celler_1", "UsedKeyOnDoor", true);



//Quests

AddEntityCollideCallback("Player", "QuestArea", "SlimeQuest", true, 1);

AddUseItemCallback("" "glass_container_mix_done", "web_1", "SlimeQuestEnd", true);

}

There was an unecessary "=".

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-06-2012, 03:44 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)