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
The "IF" with HasItem
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: The "IF" with HasItem

You will want your code to look at follows:
void Scary1(string &in asParent, string &in asChild, int alState)
{
//Things that should happen if regardless of if you have the key or not
if(HasItem("The_gone_key"))
  {
    //Scary Stuff happens here for when you have the key
  }
}

assuming you want to make aggrippa headless appear when the key has gone:
void Scary1(string &in asParent, string &in asChild, int alState)
{
if(HasItem("The_gone_key"))
  {
    SetEntityActive("agrippa_headless_1", true);
  }
}
(This post was last modified: 04-09-2012, 12:53 AM by Apjjm.)
04-09-2012, 12:52 AM
Find


Messages In This Thread
The "IF" with HasItem - by jessehmusic - 04-09-2012, 12:46 AM
RE: The "IF" with HasItem - by Apjjm - 04-09-2012, 12:52 AM
RE: The "IF" with HasItem - by jessehmusic - 04-09-2012, 03:20 AM
RE: The "IF" with HasItem - by Apjjm - 04-09-2012, 03:40 AM
RE: The "IF" with HasItem - by jessehmusic - 04-09-2012, 01:02 PM
RE: The "IF" with HasItem - by Quotentote - 04-09-2012, 06:21 AM
RE: The "IF" with HasItem - by jessehmusic - 04-09-2012, 01:12 PM
RE: The "IF" with HasItem - by Damascus - 04-09-2012, 09:30 AM
RE: The "IF" with HasItem - by SilentStriker - 04-09-2012, 09:57 AM
RE: The "IF" with HasItem - by jessehmusic - 04-09-2012, 08:39 PM
RE: The "IF" with HasItem - by Datguy5 - 04-09-2012, 10:49 AM
RE: The "IF" with HasItem - by SilentStriker - 04-09-2012, 01:11 PM
RE: The "IF" with HasItem - by Datguy5 - 04-09-2012, 06:17 PM
RE: The "IF" with HasItem - by Obliviator27 - 04-09-2012, 09:16 PM
RE: The "IF" with HasItem - by jessehmusic - 04-09-2012, 09:34 PM
RE: The "IF" with HasItem - by Obliviator27 - 04-09-2012, 10:22 PM
RE: The "IF" with HasItem - by jessehmusic - 04-10-2012, 11:32 AM
RE: The "IF" with HasItem - by SilentStriker - 04-10-2012, 12:40 PM
RE: The "IF" with HasItem - by jessehmusic - 04-10-2012, 12:45 PM
RE: The "IF" with HasItem - by Apjjm - 04-10-2012, 01:12 PM
RE: The "IF" with HasItem - by jessehmusic - 04-10-2012, 03:40 PM



Users browsing this thread: 8 Guest(s)