Login

russian armor

Adding new ui element

21 Dec 2017, 22:24 PM
#1
avatar of ANTIFLAGELLUM

Posts: 3

So I have made a tuning pack that uses the vehicle population variable to shift all vehicles to their own population pool. It works just fine but it is difficult to play since there is no ui element to show the vehicle population variable. Is there a way i can add this to the ui? Even just a plain text vehicle pop cap on the side of the screen would suffice. The only ui elements in the attribute editor are for 3d interface elements like rotational placement and area markers. Thanks for any help.
23 Dec 2017, 02:51 AM
#2
15 Jan 2018, 01:32 AM
#3
avatar of ANTIFLAGELLUM

Posts: 3

Thanks for the direction! So I have a new problem now. I have created a label that is showing the popcap values I want, but it is showing all players overlapped since I am looping through all players in the game in the default.scar file. How do I use only the local player? I looked at the scar documentation and cannot find an enum value that will help me get the client player only.
15 Jan 2018, 12:29 PM
#4
avatar of eliw00d
Honorary Member Badge

Posts: 756 | Subs: 8

You could use the function
Game_GetLocalPlayer
to check if the current player is the local player.
1 user is browsing this thread: 1 guest

Livestreams

Offline

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

292 users are online: 292 guests
4 posts in the last 24h
30 posts in the last week
84 posts in the last month
Registered members: 44637
Welcome our newest member, tridevambulance
Most online: 2043 users on 29 Oct 2023, 01:04 AM