Jump to content
Korean Random
Sign in to follow this  
Ress

Question about creating basic infopanel using vinfo.py

Recommended Posts

So {{py:vinfo.name}}, {{py:vinfo.gun_reload}} and {{py:vinfo.vision_radius}}  macros works just fine,

but i have issue displaying it on enemy targets only. (not on allies, or own stats if i have no target).
 

Tried using "alpha": "{{ally?#00|#FF}}", but that didn't work.
Since i am blind is there a way to show on enemy targets only?

battleLabelsTest.xc
vinfo.thumb.jpg.42344b6d97e4bbdfc6af26ef6160eb70.jpg

Share this post


Link to post

Short link
Share on other sites
2 hours ago, ktulho said:

Попробуйте добавить:


"flags": ["enemy"]

 


Good idea, sadly doesn't show at all.

Even tried with "flags": [ "enemy" , "spotted" , "alive" ]
and "updateEvent": "PY(ON_MARKER_POSITION), ON_EVERY_FRAME, ON_EVERY_SECOND",
just in case, still dead end.
Then i tried messing with each vinfo.py macros using {{player}} and {{ally}} for example: {{py:vinfo.name?{{ally?|py:vinfo.name}}}} ..also dead end.

Guess i gonna have to use extra .py after all. (since vinfo.py appears to be limited)

Anyway, thanks for help.

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...