Change Actor Field on Runtime using Variables
Posted: Mon Sep 09, 2019 10:33 pm
I've read the threads "change Actor's name on runtime" and "Set player display name in code"
Note: TL:DR down below
I got some few questions of my own.
https://gyazo.com/a5f13c3aa08e7934700435745163ed1a
I have an actor MainPlayer who has field of FirstName and LastName
https://gyazo.com/6a8ec0dd3d39e318f82d1741817c5c80
I used TextInput Sequence for player input.
The variable changed successfully. But I have an issue on changing Actor fields seen below.
https://gyazo.com/bb15ef0eb10be120074ac4992b9b0bcf
I've tried both
[*]Actor["MainPlayer"].FirstName = Variable["FirstName"]
and
[*]Actor["MainPlayer"].FirstName = [var=FirstName]
Nothing happened on the first script but the second script returned an exception "Failed to parse Letter of Name
TL:DR = I can't seem to find the correct syntax to assign variables to actor fields on runtime
Note: TL:DR down below
I got some few questions of my own.
https://gyazo.com/a5f13c3aa08e7934700435745163ed1a
I have an actor MainPlayer who has field of FirstName and LastName
https://gyazo.com/6a8ec0dd3d39e318f82d1741817c5c80
I used TextInput Sequence for player input.
The variable changed successfully. But I have an issue on changing Actor fields seen below.
https://gyazo.com/bb15ef0eb10be120074ac4992b9b0bcf
I've tried both
[*]Actor["MainPlayer"].FirstName = Variable["FirstName"]
and
[*]Actor["MainPlayer"].FirstName = [var=FirstName]
Nothing happened on the first script but the second script returned an exception "Failed to parse Letter of Name
TL:DR = I can't seem to find the correct syntax to assign variables to actor fields on runtime