flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|