Manialink elements in an Action?

Moderator: NADEO

Post Reply
User avatar
Posts: 696
Joined: 26 May 2012, 20:16
Location: Hamburg, Germany

Manialink elements in an Action?

Post by NJin » 19 Apr 2015, 23:02


i want to set a manialink label element in an action.gbx file. For example: my weapon ammo is empty and it needs 5 seconds to reload it. So i want to add a label during the 5 seconds reload time but i don't know how. any helps?

German Moderator || TM Turbo Moderator
Web: || Facebook: || Discord: N-Jin#2809

PC: i7-8700k @4,7GHz ; GTX 1080 ; 16GB DDR4-3000


User avatar
Posts: 173
Joined: 29 Apr 2014, 14:50
Location: Paris, France

Re: Manialink elements in an Action?

Post by noyranea » 20 Apr 2015, 15:03

Hi N-Jin,

the only way to perform this action is to use actions events :

- Send a custom action event when your weapon ammo is empty (from the action script) if needed.

- Handle the event in your gamemode script. For example, you can toggle the visibility of a layer containing the desired elements, and note that you'll have to hide it 5s later.

There might be more convenient ways to do this in the future, but for now it's your only option.

Have a nice day,

-- noyranea

User avatar
Posts: 1809
Joined: 25 Aug 2011, 21:45
Location: Poland

Re: Manialink elements in an Action?

Post by Dommy » 24 Apr 2015, 06:05

You can also declare the same variable both in action and game mode script for player (owner). Mode can communicate with the action in real time with this.

So you only need to make a boolean in action while it's reloading. The mode will attach specific layer when action returns true.

Post Reply

Return to “ActionMaker and Item editor”

Who is online

Users browsing this forum: No registered users and 1 guest