Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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