≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Calling parameters of behaviors in JS
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b]moonchristmas[/b] wrote: Sorry if the title is gibberish, I'm new to coding haha I have two questions, one more specific and one really broad about how CC works. The first is how I would go about changing the TimeNeeded parameter of the Follow a Path behavior. Right now I have a sphere following a looping path at a certain speed, and I'd like to modify that speed (which is currently defined by the TimeNeeded) when the sphere enters a proximity trigger (just a cube with no collision I placed in the path). The second question is related, because I'm just not sure what the standards would be for referencing certain behavior features and action features that I can see in simple js. I've seen something about referencing a node's direct features with like $ThingName.Scale, but not how to say something like $ThingName.Behavior.Action.ActionParameter etc. If that's even possible in that sense. I feel like I could use a lot of more powerful features without getting too complicated with the code if I could execute simple js functions while referencing more nuanced details of the behaviors, but I have no idea how to express those behaviors in js and I'm not sure where to begin looking in the documentation. Does every behavior and action property have a unique way to reference it in js?[/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