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 Candle Go out?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#16
RE: How to make Candle Go out?

(11-23-2011, 02:09 AM)GreyFox Wrote: I Don't use levers alot, and I Have a Bathroom, and I though it'd be cool if you could turn the water on and off.

So I go the lever turning the water on just not off. would you mind helping me get it so when I pull up on the leave the particle system disappears.

One thing you should get used to doing is providing an internal name where allowed. You can't destroy a particle system if you don't have any way of differentiating it from the rest.

PHP Code: (Select All)
void StartWater(string &in asEntityint alState)
{
    
/* 
     *  You should consider naming your areas asEntity + "_area" like i have done with
     *     the particle systems. You should be able to understand what i mean by that.
     *  In this way you can use this function for all bathroom "levers."
     */
    
if (alState == 1)
        
CreateParticleSystemAtEntity(asEntity "_ps""ps_water_stream.ps"asEntity "_area"false);
    else
        
DestroyParticleSystem(asEntity "_ps");


Tutorials: From Noob to Pro
(This post was last modified: 11-23-2011, 04:00 AM by Your Computer.)
11-23-2011, 03:58 AM
Website Find


Messages In This Thread
How to make Candle Go out? - by GreyFox - 11-21-2011, 10:36 PM
RE: How to make Candle Go out? - by Your Computer - 11-21-2011, 10:59 PM
RE: How to make Candle Go out? - by TheDavenia - 11-21-2011, 11:07 PM
RE: How to make Candle Go out? - by GreyFox - 11-21-2011, 11:55 PM
RE: How to make Candle Go out? - by Your Computer - 11-22-2011, 12:09 AM
RE: How to make Candle Go out? - by GreyFox - 11-22-2011, 12:20 AM
RE: How to make Candle Go out? - by BlueFury - 11-22-2011, 12:32 AM
RE: How to make Candle Go out? - by Your Computer - 11-22-2011, 01:29 AM
RE: How to make Candle Go out? - by GreyFox - 11-22-2011, 02:10 AM
RE: How to make Candle Go out? - by Statyk - 11-22-2011, 02:37 AM
RE: How to make Candle Go out? - by GreyFox - 11-22-2011, 02:51 AM
RE: How to make Candle Go out? - by Your Computer - 11-22-2011, 05:28 AM
RE: How to make Candle Go out? - by GreyFox - 11-22-2011, 12:36 PM
RE: How to make Candle Go out? - by Statyk - 11-22-2011, 10:27 PM
RE: How to make Candle Go out? - by GreyFox - 11-23-2011, 02:09 AM
RE: How to make Candle Go out? - by Your Computer - 11-23-2011, 03:58 AM



Users browsing this thread: 1 Guest(s)