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.13 (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
Beginner needs scripting help...
cheztheguy Offline
Junior Member

Posts: 12
Threads: 7
Joined: Jun 2011
Reputation: 0
Beginner needs scripting help...

Hi, I'm working on a map, and there's a key on a desk. I renamed the key "fakekey_1" and the CustomSubItemName is "fakekey" , and the CallbackFunc(tion) is getkey1

What I want the player to do when he picks up the key is this script...
(this is not the full script)

void getkey1(string &in asEntity)
CompleteQuest("Quest0", "Mission0");
SetEntityActive("Enemy2" , true);
SetEnemyIsHallucination("Enemy2", true);

However when I pick up the key in the game, it just says "Picked up Hotel Key" (that was the name of the item). Nothing else happens.

And, I would like to know about quests...
how there is a first part and a second part ("Quest0" and "Mission0" above).

Thanks! Big Grin
06-23-2011, 08:14 AM

Messages In This Thread
Beginner needs scripting help... - by cheztheguy - 06-23-2011, 08:14 AM
RE: Beginner needs scripting help... - by rojkish - 06-23-2011, 01:57 PM

Users browsing this thread: 1 Guest(s)