Describe the bug:
When playing in first person action camera, script references won’t resolve.
How do you cause this bug?
- Create a new game
- Add a script folder to the player
- Add a script to the script folder called “fooScript”
- add ascript to the player called “barScript”
- Inside barScript, add the following:
local BarScript = {}
-- Script properties are defined here
BarScript.Properties = {
-- Example property
--{name = "health", type = "number", tooltip = "Current health", default = 100},
}
--This function is called on the server when this entity is created
function BarScript:LocalInit()
print(self:GetEntity().fooScript)
end
return BarScript
- In the Player properties, set the Forced Camera Restriction to 1st person only
- Preview the game,
barScript
will printnil
Screenshots / video of bug:
Which platform: PC
Your Crayta username: Cereal
Game seen in (including “Hub” or “Editor for XYZ”): Glum Chums, editor, every game. Just hit page up until you go into first person, then enter any game. Nothing will work.
How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time.
Time + date seen: December 17 2022
Version number (found in Help tab in Settings): 0.i1.86.138001