Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Help needed
jens Offline
Frictional Games

Posts: 4,093
Threads: 199
Joined: Apr 2006
Reputation: 202
#18
RE: Small Help needed

You do not place sound and particles entities to turn them on/off, you only place them to have them enabled from the start of a level and if wanted turning them off while playing the level.

If you want to play a sound or start a particle while playing a level, that is not active when starting the level, you create areas and use the PlaySoundAtEntity/CreateParticleSystemAtEntity functions.

So for example create a script area called AreaMyEffects, then in script type:
PlaySoundAtEntity("monster_alert_sound", "amb_alert.snt", "AreaMyEffects", 0, false);
CreateParticleSystemAtEntity("monster_alert_particle", "ps_water_dump.ps", "AreaMyEffects", false);

This will make the sound play and the particle to appear at the center of the AreaMyEffects area.

You can also use entities for this, for example if you have a Lamp entity named MyBigBrightCandle, then:
PlaySoundAtEntity("monster_alert_sound", "amb_alert.snt", "MyBigBrightCandle", 0, false);
CreateParticleSystemAtEntity("monster_alert_particle", "ps_water_dump.ps", "MyBigBrightCandle", false);

Would do the same and play/create stuff at the candle entity.
11-29-2010, 06:41 PM
Website Find


Messages In This Thread
Small Help needed - by LoneWolf - 11-29-2010, 11:30 AM
RE: Small Help needed - by Akumasama - 11-29-2010, 03:49 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 03:50 PM
RE: Small Help needed - by Akumasama - 11-29-2010, 03:52 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 04:07 PM
RE: Small Help needed - by Akumasama - 11-29-2010, 04:09 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 04:30 PM
RE: Small Help needed - by Chilton - 11-29-2010, 04:53 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 04:55 PM
RE: Small Help needed - by Chilton - 11-29-2010, 05:04 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 05:07 PM
RE: Small Help needed - by Chilton - 11-29-2010, 05:16 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 05:46 PM
RE: Small Help needed - by jens - 11-29-2010, 05:49 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 05:53 PM
RE: Small Help needed - by jens - 11-29-2010, 06:06 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 06:11 PM
RE: Small Help needed - by jens - 11-29-2010, 06:41 PM
RE: Small Help needed - by Frontcannon - 11-29-2010, 06:52 PM
RE: Small Help needed - by LoneWolf - 11-29-2010, 07:19 PM



Users browsing this thread: 1 Guest(s)