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
Making a grunt appear after keypickup
lordmestari Offline
Junior Member

Posts: 22
Threads: 8
Joined: Apr 2011
Reputation: 0
#1
Making a grunt appear after keypickup

Hello, I am pretty new to scripting and all that, and I require your help.

Basically the player picks up a key, and a grunt should appear behind the door to the room. How do I do this?

I've already done this with a tinderbox, my script looks like this:


void TakeTinder(string &in asEntity)
{
SetEntityActive("servant_grunt_1", true);
}

void OnStart()
{
SetEntityPlayerInteractCallback("tinderbox_1", "TakeTinder", true);
}


void OnEnter()
{

}

void OnLeave()
{

}

Thank you
(This post was last modified: 04-08-2011, 10:46 AM by lordmestari.)
04-08-2011, 10:42 AM
Find


Messages In This Thread
Making a grunt appear after keypickup - by lordmestari - 04-08-2011, 10:42 AM



Users browsing this thread: 1 Guest(s)