Posts made by Rainer_Z
- 
		RoomPosition in memoryposted in HelpHey all, I am trying to do the following and don't understand why its not working the way I suppose it should: I have a creep with an information .memory.destination: RoomPosition Now if I'm trying to access this information in a function by console.log it gives me an array of two objects instead of the RoomPosition object. So for example: myFunction: function(myCreep, myRoomPosition) { 
 console.log(myRoomPosition); // yields '[object Object]'
 var myRoomPosition2 = new RoomPosition(myRoomPosition.x, Â myRoomPosition.y, myRoomPosition.roomName)
 console.log(myRoomPosition2) // yields the right thing '[room WxxNxx pos xx,yy]'
 ... }So what am I missing here? Why do I have to redeclare the RoomPosition object instead of just using it right from the creeps memory? Thanks a lot! 
