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
Activate grunts by key pickup!
Bramme Offline
Junior Member

Posts: 13
Threads: 5
Joined: Jan 2012
Reputation: 0
#1
Activate grunts by key pickup!

What is the script for activating a grunt when i pick up a key?
(This post was last modified: 01-06-2012, 09:03 PM by Bramme.)
01-06-2012, 07:20 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Activate grunts by key pickup!

(01-06-2012, 07:20 PM)Bramme Wrote: What is the script for activating a grunt when i pick up a key?
Look at this tutorial Smile http://www.youtube.com/watch?v=ZYbTxyjhG...yGduYLNd9b

Here's the script Smile

void OnStart()
{
SetEntityPlayerInteractCallback("NAMEOFTHEKEY", "spawn_func", true);
}

void spawn_func(string &in item)
{
SetEntityActive("Nameofthemonster", true);
}

(This post was last modified: 01-06-2012, 08:02 PM by SilentStriker.)
01-06-2012, 07:52 PM
Find
Bramme Offline
Junior Member

Posts: 13
Threads: 5
Joined: Jan 2012
Reputation: 0
#3
RE: Activate grunts by key pickup!

Thanks mate i am so happyBig Grin
01-06-2012, 09:02 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Activate grunts by key pickup!

(01-06-2012, 09:02 PM)Bramme Wrote: Thanks mate i am so happyBig Grin
No problem dude Smile


01-06-2012, 09:25 PM
Find




Users browsing this thread: 1 Guest(s)