Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 735 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
play 3d sound at position instead of from entity? #453352
07/22/15 10:02
07/22/15 10:02
Joined: Dec 2009
Posts: 82
D
Denn15 Offline OP
Junior Member
Denn15  Offline OP
Junior Member
D

Joined: Dec 2009
Posts: 82
is it possible to play a 3d sound at a given position (x, y, z) instead of from an entity?
i want to have a sound playing from an enemy when the enemy is killed, but the thing is that as soon as the enemy is removed with ent_remove, then the sound stops.

is there a workaround to this, that does not involve using entities?

Re: play 3d sound at position instead of from entity? [Re: Denn15] #453353
07/22/15 10:47
07/22/15 10:47
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
Hi,
you can wait to the music finish after deleting the entity. You might set PASSABLE | INVISIBLE to the enemy to take it off from the scene, if you want.

Salud!

Re: play 3d sound at position instead of from entity? [Re: txesmi] #453354
07/22/15 11:23
07/22/15 11:23
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Create a dummy entity with the string "" or NULL and then use snd_playing (handle); to check when the sound has ended. You can remove the entity now.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1