Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, degenerate_762), 1,309 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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