The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 A question of variables
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
A question of variables

Hi, forum.
Maybe I'm being heavy with all my questions, but it's just that i didn't find what i was searching, and i think that in this forum someone will know it.

How can i make this:
If you carry a hammer, wooden planks appear when crossing a script area.
If you don't (the most interesting for me) there are no wooden planks and a monster chases you.
I think it's something like:

void ASDF
{
if (HasItem)== Hammer)
{
SetEntityActive("wooden", true);
}
else
{
SetEntityActive("servant_2", true);
}
}

it says "expected expression value"
If I knew this my map should be fixed.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 08-31-2012, 04:16 PM by The chaser.)
08-31-2012, 04:16 PM
Find


Messages In This Thread
A question of variables - by The chaser - 08-31-2012, 04:16 PM
RE: A question of variables - by GoranGaming - 08-31-2012, 04:22 PM
RE: A question of variables - by GoranGaming - 08-31-2012, 04:46 PM
RE: A question of variables - by shadowZgamerZ - 08-31-2012, 04:47 PM



Users browsing this thread: 1 Guest(s)