Manialink elements in an Action?

Moderator: NADEO

Post Reply
User avatar
NJin
Posts: 712
Joined: 26 May 2012, 20:16
Contact:

Manialink elements in an Action?

Post by NJin »

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
n-jin.xyz || Instagram || Twitter || Twitch || Discord: njin

Image
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

Re: Manialink elements in an Action?

Post by noyranea »

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: 1901
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Re: Manialink elements in an Action?

Post by Dommy »

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.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
Post Reply

Return to “ActionMaker and Item editor”

Who is online

Users browsing this forum: No registered users and 1 guest