Exposed LevelLocals' LookupString functionality
This commit is contained in:
parent
aea346f1f3
commit
fc7bb4a7e6
2 changed files with 14 additions and 0 deletions
|
|
@ -2450,6 +2450,19 @@ DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, SphericalCoords, SphericalCoords)
|
|||
ACTION_RETURN_VEC3(result);
|
||||
}
|
||||
|
||||
static void LookupString(FLevelLocals *level, uint32_t index, FString *res)
|
||||
{
|
||||
*res = level->Behaviors.LookupString(index);
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(FLevelLocals, LookupString, LookupString)
|
||||
{
|
||||
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
||||
PARAM_UINT(index);
|
||||
FString res;
|
||||
LookupString(self, index, &res);
|
||||
ACTION_RETURN_STRING(res);
|
||||
}
|
||||
|
||||
static int isFrozen(FLevelLocals *self)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue