ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Multiple choice parameter for action scripts
person icon
DouweDabbe
Guest
Quote
2022-05-29 13:51:15

How do I make a Multiple choice parameter,
for my actions and behaviors ?

the action "Change Position of a Scene node"
has the multipkle choice parameter:
"Set Position Type" with the following options:
- "Set Fixed Position"
- "Move by Vector"
- "Set Relative to a Scene Node"
- "Move by Vector into Facing Direction"
etcetera.

I need that ability also but did not find it in the manual.

person icon
just_in_case
Moderator
Quote
2022-05-29 17:46:02

There is no Enum support for the custom scripts. We can't create multiple-choice-based properties in behaviors and actions.
I need that too from the very beginning when I started creating behaviors and actions. Now I need it more when I am creating super complex shader extensions.

person icon
DouweDabbe
Guest
Quote
2022-05-29 19:15:53

I am converting VP sound FX ideas for reverb and echo etc.

to a Prefab ccb/ccp file and js action class.

Solving multiple choice; "Looped", "Play_Once", "Nothing",
by using the execute function with a choice string.
From there I am calling getter, setter and play and stop functions
and using sliders to play with parameters, volume delay offset etc.
Still in very early stages, may not get finished any time soon.

success.


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |