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
"if" help ( again -_-'' )
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#9
RE: "if" help ( again -_-'' )

okay guys it works now ^^ i just did everything you said and now it works. if i can help someone with this: this is what it looks like now

void CompleteOilQuest(string &in asEntity)
{
    CompleteQuest("oil_quest", "OilQuest");
    AddPlayerSanity(30);
    PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
    if(GetPlayerLampOil() == 0.0f)
    {
        SetMessage("map2_messages", "OilQuestDone1", 5.0f);
    }
    else if(GetPlayerLampOil() > 0.0f && GetPlayerLampOil() <= 5.0f)
    {
        SetMessage("map2_messages", "OilQuestDone2", 5.0f);
    }
    else if(GetPlayerLampOil() > 5.0f && GetPlayerLampOil() < 12.5f)
    {
        SetMessage("map2_messages", "OilQuestDone3", 5.0f);
    }
    else if(GetPlayerLampOil() == 12.5f)
    {
        SetMessage("map2_messages", "OilQuestDone4", 5.0f);
    }
}

thanks for the help Smile

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-21-2013, 05:42 PM
Find


Messages In This Thread
"if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 06:13 PM
RE: "if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 06:57 PM
RE: "if" help ( again -_-'' ) - by Adrianis - 02-20-2013, 06:57 PM
RE: "if" help ( again -_-'' ) - by tonitoni1998 - 02-20-2013, 07:09 PM
RE: "if" help ( again -_-'' ) - by MulleDK19 - 02-20-2013, 11:20 PM
RE: "if" help ( again -_-'' ) - by NaxEla - 02-21-2013, 12:49 AM
RE: "if" help ( again -_-'' ) - by tonitoni1998 - 02-21-2013, 05:42 PM



Users browsing this thread: 1 Guest(s)