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)
(12-08-2011, 03:32 PM)BesTCracK Wrote: I will say it to you like this for example we have got Oil , Blood potion : Blood potion I put to a chemistry thing ( vial or something ) then to it Oil = result new potion ( for example its name is Unfinished Potion )
then the Unfinished Potion I want to mix with ( lets say with a potion I found somewhere else for example Uncompleted Acid ) I want to mix Unfinished Potion with Uncompleted Acid by putting them into a extaction oven and when I put them in it will make new potion ( for example Acid ) and I will pick the Acid .
For this I want to do the script I posted you the script here but the only thing that doesnt work is that the last potion ( Acid ) doesnt appear 
void potion_func1(string &in asItem, string &in asEntity)
{
AddLocalVarInt("potionvar", 1);
PlaySoundAtEntity("", "impact_glass_high.snt", "Player", 0, false);
RemoveItem("Blood");
}
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");
}
void potion_func4(string &in asItem, string &in asEntity)
{
AddLocalVarInt("potionvar", 1);
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);
}
} Did you add it in the level editor?
|
|
12-08-2011, 03:42 PM |
|