Jump to content
Korean Random
Sign in to follow this  
scyorkie

macro help - alpha depending on vehicle class?

Recommended Posts

I know that alpha value can be made dependent on variables such as whether the player is alive:

 

"alpha": "{{alive?100|0}}"

 

However, can it be made dependent on tank class? What I want to achieve is to have the xvm-user png show up on playersPanel for SPG players only.

Share this post


Link to post

Short link
Share on other sites

Yes it is. Unfortunately I don't remember exactly the format.

 

According to macros.txt, I think it's something like "vtype=SPG?" or "vtype-key=SPG?".

 

Edit: 

 

It's {{vtype-key=SPG?100|0}}

Edited by cokebottle
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Awesome, thanks! I was playing around with that, and gave up after trying trying a few permutations of {{vtype-SPG?100|0}}.

 

Now using this: {{vtype-key=SPG?{{alive?{{spotted?0|100}}|0}}|0}}

 

The png disappears if the SPG is spotted or killed.

Edited by scyorkie

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...