greatstudios
Member
Getting this error when trying to use the SharedInt or SharedFloat variables
error CS0246: The type or namespace name 'SharedFloat' could not be found (are you missing a using directive or an assembly reference?)
In this particular case, I'm writing a conditional task similar to the Deathmatch 'IsHealthLow' task referencing my own Health component.
Line 10: If I'm using the regular float type, I have no error. Only when I change it to SharedInt I get the error.

I see someone else had the same issues here but no resolution. I did try adding an assembly definition to that folder to reference the BD runtime, but then that created a whole bunch of errors. I deleted it and prefer to fight one issue instead of 7 or 8
error CS0246: The type or namespace name 'SharedFloat' could not be found (are you missing a using directive or an assembly reference?)
In this particular case, I'm writing a conditional task similar to the Deathmatch 'IsHealthLow' task referencing my own Health component.
Line 10: If I'm using the regular float type, I have no error. Only when I change it to SharedInt I get the error.

I see someone else had the same issues here but no resolution. I did try adding an assembly definition to that folder to reference the BD runtime, but then that created a whole bunch of errors. I deleted it and prefer to fight one issue instead of 7 or 8