≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
3D Audio Broken / Playing In Engine / Playing in Scenes it is not Placed
Posted by:
(you are not logged in)
Enter the missing letter in: "Intern?tional"
(you are not logged in)
Text:
[quote][b]Guest[/b] wrote: [code] /* <action jsname="action_Test" description="This is a test action"> <property name="ChangeWhichNode" type="scenenode" /> </action> */ action_Test = function() { }; // called when the action is executed action_Test.prototype.execute = function(currentNode) { if(ccbGetSceneNodeProperty(this.ChangeWhichNode,"Type") !== "sound"){ print("Not an audio node!"); return; } print(ccbGetSceneNodeProperty(this.ChangeWhichNode,"PlayMode")); if(ccbGetSceneNodeProperty(this.ChangeWhichNode,"PlayMode") == "nothing") { ccbSetSceneNodeProperty(this.ChangeWhichNode, "PlayMode", "looping"); print("Playing audio"); } else { ccbSetSceneNodeProperty(this.ChangeWhichNode, "PlayMode", "nothing"); print("Stopping audio"); } } [/code] Here's a CC action written by Youtuber Gamefromscratch that allows you to toggle the 3D sound on/off. He also has a CC tutorial on Youtube (& his website--link below) that someone may find helpful. [url]https://devga.me/tutorials/coppercube-6/extending-coppercube-with-javascript/[/url][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact