Again I'm back with a Unity scripting issue.
Problem : I've made a type to reorganise my scattered code, when I try to assign a value to a variable made with that type, it still stays as zero, I haven't got a clue why it shouldn't work. Stangely aswell, even if I print the value to the screen directly from the script, it won't work either.
Code (Broken Down):
Do
Init_Characters
Init_Player
Game_Loop
Loop
Init_Characters:
Type Character
CrouchStrafeSpeed As Float `EXAMPLE VARIABLE
EndType
Return
Init_Player:
Global Player As Character
R = Load Lua("Files\Scripts\Player\Player_Attributes.lua")
Player.CrouchStrafeSpeed = Lua Get Float("CrouchStrafeSpeed")
Return
Game_Loop:
Do
Text 10,10,Str$(Player.CrouchStrafeSpeed)
Text 10,20,Str$(Lua Get Float("CrouchStrafeSpeed"))
Sync
Loop
Return
Thanks for any help in advance.
Note - The value in the script is 1 defintely.