Hey guys, I've got this thing that was quirking me here. Not sure where to put it, but I'll just place it here.
To replicate, I made a local float like this:
local float hsp; hsp = 0;
... Now supposed if that code was in the create of a parent entity.
We then make a child for it, obj_player for example then in the creation script, we want to inherit what was there:
event_inherited(); ...
When I do that, an error gives off like this:
error: invalid initialization of reference of type 'float&' from expression of type 'var' case obj_player: return ((OBJ_obj_player*)inst)->hsp; ^
Just an heads up for you guys.
|