Scripts / adding sound on object collision..help

Author
Message
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 28th Sep 2019 22:09
hi I'm unsing the pickupabble.lua script provided by the community and want to add a sound or a bunch of random sounds based on the material of the object when the object collide with the terrain after been pushed or pulled


i added this


in the HandleTerrainCollisions function to have this



but i got ean error ..I'm new to lua and still learning and sincerely i cannot figured too well all the "end" lua needs LOL

any hint?
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Sep 2019 22:25 Edited at: 28th Sep 2019 22:27
Been there, done that, got all the T-Shirts!
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 29th Sep 2019 21:43
worked and added this even on the check trown function and work too but sound plays only one time if e-g- crate hurt before a wall and after the terrain sound plays only on the wall impact but when crate fall on terrain impact sound wont play.
i deleted the call to RemoveObjectCollisionCheck( ) function but without results
PC Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA NVDIA 1660GTX 6GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM

Login to post a reply

Server time is: 2024-12-22 08:43:45
Your offset time is: 2024-12-22 08:43:45