coerce and/or localized strings

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
I've been wondering what the difference is between a normal string and a coerce string. And what the difference is between a normal and a localized string.
 

FireSlash

Whats a FireSlash?
Feb 3, 2001
4,300
0
0
39
Central Ohio
www.unrealannihilation.com
you mean like...

var int myvar

agisnt

function tick()
{
local int myvar;
}
?

as in that case, the local varible only has a value inside that function, whereas the one defined as var, has a value throughout the entire class...
 

usaar33

Un1337
Mar 25, 2000
808
0
0
Unknown
www.UsAaR33.com
Originally posted by 2COOL4-U
I've been wondering what the difference is between a normal string and a coerce string. And what the difference is between a normal and a localized string.


A coerce string only applies to functions.
i.e.
Code:
Function CoolStuff(coerce string a){
//blah blah blah

All that says is that whatever you pass into cool stuff as a, it will become a string. Without that, you would get a compile error when trying to pass an integer for instance...


Localized strings are used for multi language support. They can only be global vars. UT will look up the string packagename.languageextension file and then under [classname]. If it finds an entry it will use that as the default.