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
Script Help If HasItem Help
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#2
RE: If HasItem Help

You used the function "GetSomething" wrong. The "bool" means that the function will retrieve a true or false result. There are also "int" and "float" which are for numbers.

To work it should look like
if( HasItem("lantern") == true ) ///or if( HasItem("lantern") == false ) depending on what you want to do
{
///rest of stuff
}

05-29-2016, 09:21 PM
Find


Messages In This Thread
If HasItem Help - by 3gamers - 05-29-2016, 08:08 PM
RE: If HasItem Help - by Darkfire - 05-29-2016, 09:21 PM
RE: If HasItem Help - by TimProzz - 06-02-2016, 10:39 AM



Users browsing this thread: 1 Guest(s)