Discussions
Sign In
Forum rules
- please read before posting.
Menu on/off and Run ActionList
klarax
March 2016
in
Technical Q&A
Hi,
Via code, I wish to:
a) turn off/on a menu
and
b) run a cutscene or action .
I can never find the functions i need... lol
Thanks
K
Comments
ChrisIceBox
April 2016
To turn on/off a Menu, you first need to access the class via it's name:
AC.Menu myMenu = AC.
PlayerMenus.GetMenuWithName
("MyCoolMenu");
Then:
myMenu.TurnOn ();
myMenu.TurnOff ();
To run any ActionList:
myActionList.
Interact
();
klarax
April 2016
Brilliant.
Thanks Chris
klarax
April 2016
Sory, going back to this, how would i lock a menu XD
ChrisIceBox
April 2016
myMenu.
isLocked
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
13.4K
All Categories
68
Official news
1.5K
Engine development
11.3K
Technical Q&A
361
Games showcase
160
Extending the editor
239
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
AC.Menu myMenu = AC.PlayerMenus.GetMenuWithName ("MyCoolMenu");
Then:
myMenu.TurnOn ();
myMenu.TurnOff ();
To run any ActionList:
myActionList.Interact ();
Thanks Chris