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
Can someone tell me what is wrong with this script? (again)
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#3
RE: Can someone tell me what is wrong with this script? (again)

(07-21-2012, 03:42 PM)andyrockin123 Wrote: You were missing a "}" at the end of the if/else statement, here's the revision:





void AcidPrepare(string &in asParent, string &in asChild, int alState)

{

if(GetSwingDoorClosed("Extract") == false)

{

SetMessage("Messages", "CloseDoor", 0);

}

else

{

AddTimer("", 2.0, "TimerSwitchShovel");

CreateParticleSystemAtEntity("", "blood.ps", "BloodArea2", false);

SetEntityActive("glass_1", false);

SetEntityActive("glass_2", true);

}

}


Thank you so much, because of the } that was already there I didn't notice I was supposed to put another one there for the first {

Once again thanks :p

~The Hulk is always greener on the other side~
07-21-2012, 03:44 PM
Find


Messages In This Thread
RE: Can someone tell me what is wrong with this script? (again) - by Magasztos - 07-21-2012, 03:44 PM



Users browsing this thread: 1 Guest(s)