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
Trying to stab a pig!
oscar1007 Offline
Member

Posts: 64
Threads: 24
Joined: Oct 2011
Reputation: 0
#1
Trying to stab a pig!

... but i cant get it to work! Sad
The deal is that you are suppose to get a key in you inventory when you have stabbed it.
When i try to use the dagger at the pig it says something like: "cannot use item this way".

Here is my script for it:


void OnStart()
{
AddEntityCollideCallback("ceremony_knife_1", "pig_corpse_1", "pig_stab", "true", 1);
}


void pig_stab(string &in asParent, string &in asChild, int alState)
{
GiveItem("Player", "key_torture_chamber_1", "key_torture_chamber_1", "key_torture_chamber_1.tga", 1);
GiveSanityBoostSmall();
}

Can someone help me?!

Thanks!

Money can't buy you happiness. But I rather cry in my ferrari.

PROJECT:
http://www.moddb.com/mods/oscar1007
(This post was last modified: 01-18-2012, 10:21 AM by oscar1007.)
01-15-2012, 07:22 PM
Find


Messages In This Thread
Trying to stab a pig! - by oscar1007 - 01-15-2012, 07:22 PM
RE: Trying to stab a pig! - by Khyrpa - 01-15-2012, 07:31 PM
RE: Trying to stab a pig! - by oscar1007 - 01-15-2012, 07:42 PM
RE: Trying to stab a pig! - by flamez3 - 01-16-2012, 03:03 AM
RE: Trying to stab a pig! - by oscar1007 - 01-16-2012, 04:47 PM
RE: Trying to stab a pig! - by Shadowfied - 01-17-2012, 09:37 AM
RE: Trying to stab a pig! - by oscar1007 - 01-17-2012, 01:28 PM
RE: Trying to stab a pig! - by Shadowfied - 01-17-2012, 01:40 PM



Users browsing this thread: 1 Guest(s)