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 do I remove music from an enemy being around?
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#18
RE: How do I remove music from an enemy being around?

(11-13-2011, 05:32 PM)TheDavenia Wrote: I don't need it right now but thanks anyways Wink
Could you help me with something?
I want particle systems to activate when the player walks into an area... how do i do that...?
First, make two script areas. "Area1", the player will walk into to make the particle appear. "Area2", put where you want the particle system to occur.

Then, Script this, filling in capitalized parts with your info:

//_______________________________

void OnStart()
{
AddEntityCollideCallback("Player", "Area1", "Particle_func" true, 1);
}

void Particle_func(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("", "PARTICLESYSTEM.ps", "Area2", false);
}

//_______________________________

This should do it. I'm going paintballing now, so I wish you luck! =]
(This post was last modified: 11-13-2011, 05:46 PM by Statyk.)
11-13-2011, 05:44 PM
Find


Messages In This Thread
RE: How do I remove music from an enemy being around? - by Statyk - 11-13-2011, 05:44 PM



Users browsing this thread: 2 Guest(s)