Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
How would I create a dropdown of choices for my behaviour?

deepdowngames21
Registered User
Quote
2021-07-19 04:49:48

Hello all, I have recently decided that the default AI are too primitive for my project and I plan on developing my own AI behavior. Although I noticed that the Game Actor with Health behavior has a Mode option, what property type would let me create a drop-down in the editor where a user could pick a specific type?

It'd be very useful if you could link me a resource that lists all the different property types. I looked in the CC docs under Scripting and the Java Script References, but couldn't find anything about these property types.

Btw I'm kind of new to JS so yeah just to let you know.

This is my script so far:


/*
<behavior jsname="behavior_rCAI"
description="Ray's Custom AI">
<property name="Mode" type="" />
</behavior>
*/

behavior_rCAI = function()
{

};



just_in_case
Moderator
Quote
2021-07-19 05:54:04

Sorry, but enums are not possible for now in scripting paramters for actions and behaviours. So you can't really create a dropdown.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

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