Login

russian armor

SCAR LocString Question

28 Apr 2015, 23:10 PM
#1
avatar of Opulent Omega

Posts: 17

Hi!

I want to use the following function:

Code
HintMouseover_Add( LocString hintText, Marker/Position/Egroup/Sgroup hintTarget, Real targetRadius, Boolean looping )


But I need an input named LocString. I've searched everywhere but I am unable to make create this LocString input. And if I do get it working, there's this 'LOC: ' heading that is before my text, so it looks like: 'LOC: Capture this point' instead of simply 'Capture this point'.

Is there some call I need to do to create an output that is a LocString?

I would really appreciate the help.
7 May 2015, 16:00 PM
#2
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

Code

function Util_CreateLocString(text)
local tmpstr = LOC(text)
tmpstr[1] = text
return tmpstr
end

local hintText = Util_CreateLocString("blah blah blah")
HintMouseover_Add(hintText , ...)
8 May 2015, 13:21 PM
#3
avatar of Opulent Omega

Posts: 17

Thank you SO much Janne! Highly appreciate it! You rock!
1 user is browsing this thread: 1 guest

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

1113 users are online: 1113 guests
1 post in the last 24h
9 posts in the last week
27 posts in the last month
Registered members: 50005
Welcome our newest member, swimmingpoolsofflori
Most online: 2043 users on 29 Oct 2023, 01:04 AM