Gamestudio Links
Zorro Links
Newest Posts
Stooq now requires an API key
by k_ivan. 06/10/26 14:39
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (alx, TipmyPip, AndrewAMD, Quad, 1 invisible), 3,180 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ENABLE_FRICTION #338863
08/22/10 09:39
08/22/10 09:39
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
How do I make physical entity, play sound each time, when it touches whatever block or model? I try to use ENABLE_FRICTION, works good, but when object stops moving, sound is still playing...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ENABLE_FRICTION [Re: 3run] #338870
08/22/10 10:26
08/22/10 10:26
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
do you mean the sound plays another time or the sound coninues playing until it finish?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: ENABLE_FRICTION [Re: painkiller] #338872
08/22/10 10:34
08/22/10 10:34
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Sound just needs to play one time, only when it impacts with anything.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ENABLE_FRICTION [Re: 3run] #339063
08/24/10 09:48
08/24/10 09:48
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
Any idea guys?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ENABLE_FRICTION [Re: 3run] #339068
08/24/10 10:48
08/24/10 10:48
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
maybe

if(event_type==EVENT_FRICTION)
{
if(!snd_playing(yoursound_handle)) yoursound_handle=snd_play(yoursound, 100, 0);
}else{
if(snd_playing(yoursound_handle)) snd_stop(yoursound_handle);
}


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: ENABLE_FRICTION [Re: 3run] #339069
08/24/10 11:05
08/24/10 11:05

C
chris_oat
Unregistered
chris_oat
Unregistered
C



maybe instead of media_play or snd_play you use, media_loop or snd_loop?
I use myself the Enable Friction to let the empty bullets and mag once they fall to the ground play a sound. and it works good. (sound plays only once)

Re: ENABLE_FRICTION [Re: painkiller] #339070
08/24/10 11:06
08/24/10 11:06
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
OK, thank you one more time painkiller laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Spirit 

Gamestudio download | 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