Manialink elements in an Action?

Moderator: NADEO

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

Manialink elements in an Action?

Post by NJin » 19 Apr 2015, 23:02

Hello,

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?

Cheers,
N-Jin
German Moderator || TM Turbo Moderator
Web: http://n-jin.eu/ || Facebook: http://fb.com/NJinTM

Image

User avatar
noyranea
Nadeo
Nadeo
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
Dommy
Translator
Translator
Posts: 1779
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

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