CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
Trying to get a sound to play when you melee with the Wolfbow
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Collie" data-source="post: 15370" data-attributes="member: 25679"><p>Exactly as the title says, I'm trying to get the game to play a specific sound when the player melees with the wolf bow out. I have put the sound in my mod's folders, however I am having difficulties getting the game to recognize that the player is holding the wolfbow. Here is the code I am using:</p><p>[PHP]</p><p>function wbowmelee()</p><p>{</p><p> for(;;)</p><p> {</p><p> if(self MeleeButtonPressed())</p><p> {</p><p> if(self getcurrentweapon()=="elemental_bow_wolf_howl")</p><p> {</p><p> playsoundatposition( "mus_snarl", (0,0,0) );</p><p> wait(1.5);</p><p> continue;</p><p> }</p><p> else</p><p> {</p><p> wait(2);</p><p> continue;</p><p> }</p><p> }</p><p> wait(0.05);</p><p> }</p><p>}</p><p>[/PHP]</p><p>I know the issue is with the game not recognising that the wolfbow is equipped, as putting a iprintlnbold in along with the sound does not produce any results. In addition, if anyone has any experience with using sounds in mods could you tell me exactly how that works? I want to use sounds more in my mods, but I am unsure if I am doing it right here.</p></blockquote><p></p>
[QUOTE="Collie, post: 15370, member: 25679"] Exactly as the title says, I'm trying to get the game to play a specific sound when the player melees with the wolf bow out. I have put the sound in my mod's folders, however I am having difficulties getting the game to recognize that the player is holding the wolfbow. Here is the code I am using: [PHP] function wbowmelee() { for(;;) { if(self MeleeButtonPressed()) { if(self getcurrentweapon()=="elemental_bow_wolf_howl") { playsoundatposition( "mus_snarl", (0,0,0) ); wait(1.5); continue; } else { wait(2); continue; } } wait(0.05); } } [/PHP] I know the issue is with the game not recognising that the wolfbow is equipped, as putting a iprintlnbold in along with the sound does not produce any results. In addition, if anyone has any experience with using sounds in mods could you tell me exactly how that works? I want to use sounds more in my mods, but I am unsure if I am doing it right here. [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 3
Call of Duty: Black Ops 3 Mods and Scripts
Call of Duty: Black Ops 3 Scripts
Call of Duty: Black Ops 3 Scripts Question
Call of Duty: Black Ops 3 Answered Questions
Trying to get a sound to play when you melee with the Wolfbow
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top