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
How to make a door bang when walking into an area?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#9
RE: How to make a door bang when walking into an area?

(10-20-2011, 12:12 AM)MissMarilynn Wrote: Mmkay and I was trying to figure that out earlier to. How do I make a particle system start when I walk into an area?

You use AddEntityCollideCallback, provide "Player" for the parent and the area name for the child name, and in the callback call something like:

PHP Code: (Select All)
AddPropImpulse("door_name", -2, 0, 0, "World");
PlaySoundAtEntity("pound", "hit_wood", "door_name", 0, false);
PlaySoundAtEntity("enemy", "L02_attack", "door_name", 0, false);
CreateParticleSystemAtEntity("pound_dust", "ps_hit_wood", "door_name", false); 

Tutorials: From Noob to Pro
(This post was last modified: 10-20-2011, 12:33 AM by Your Computer.)
10-20-2011, 12:33 AM
Website Find


Messages In This Thread
RE: How to make a door bang when walking into an area? - by Your Computer - 10-20-2011, 12:33 AM



Users browsing this thread: 1 Guest(s)