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
Im here once again and once again need help ! (Amnesia Custom Story)
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#10
RE: Im here once again and once again need help ! (Amnesia Custom Story)


Quote:void potion_func1(string &in asItem, string &in asEntity)
{
AddLocalVarInt("potionvar", 1);
PlaySoundAtEntity("", "impact_glass_high.snt", "Player", 0, false);
RemoveItem("Blood");
func_on();
}

void potion_func2(string &in asItem, string &in asEntity)
{
AddLocalVarInt("potionvar", 1);
PlaySoundAtEntity("", "impact_glass_high.snt", "Player", 0, false);
RemoveItem("Oilpp");
func_on();
}
void potion_func3(string &in asItem, string &in asEntity)
{
AddLocalVarInt("potionvar", 1);
PlaySoundAtEntity("", "impact_glass_high.snt", "Player", 0, false);
RemoveItem("Mixurepot");
func_on();
}

void potion_func4(string &in asItem, string &in asEntity)
{
AddLocalVarInt("potionvar", 1);
func_on();
PlaySoundAtEntity("", "impact_glass_high.snt", "Player", 0, false);
RemoveItem("UAcid");
}
void func_on()
{
if(GetLocalVarInt("potionvar") == 2)
{
SetEntityActive("Mixurepot", true);
}
if(GetLocalVarInt("potionvar") == 4)
{
SetEntityActive("Acid", true);
}
}
Sorry, didn't add func_on(); into the other callbacks. If that doesn't work tell me and I'll tell you how to do it another way.

12-09-2011, 02:15 PM
Find


Messages In This Thread
RE: Im here once again and once again need help ! (Amnesia Custom Story) - by flamez3 - 12-09-2011, 02:15 PM



Users browsing this thread: 1 Guest(s)