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!
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#2
RE: Trying to stab a pig!

Grab a dagger ("ceremony_knife_1")
Take out the dagger and prepare it (use it through your inventory)
Take a touch at the pig with the dagger (use it to the pig)
The dagger hits the pigs flesh physically (AddUseItemCallback)
Blood spills around and it makes noises (CreateParticleSystemAtEntity, PlaySoundAtEntity)
etc.

search the stuff from engine script page

doubt that makes any sense... This should:

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

(This post was last modified: 01-15-2012, 07:33 PM by Khyrpa.)
01-15-2012, 07:31 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)