In the editor I created a soldier unit with an empty backpack and in the init of this unit I added
this addItemToBackpack"Laptop_Closed";
this creats an object that is not added directly in the editor. I want to assign this object a variable name so I can do thing with it later in the mission, to get its position for example. I tried
missionNamespace setVariable ["Fckn_laptop", (backpackItems player select 0)];
hint format["position of fckn laptop is: %1", getPos Fckn_laptop]
but that doesn't work, since classnames are not the objects. I really hope the question is clear, makes sense and not a duplicate and I hope for a general solution about accessing objects whether create in the editor or later in the mission.
This is my first post here and I'm just beginner in scripting and don't distinguish these things very well yet. I hope someone helps with this. Thanks a lot.