Copying a Object and Retaining its values?

BlitzMax Forums/BlitzMax Programming/Copying a Object and Retaining its values?

Why use a function rather than a method?

	Method copy:Laser(newname:String)
		temp:laser = New laser
			temp.name = newname
			temp.iX = Self.iX
			temp.iY = Self.iY
			temp.iZ = Self.iZ
		Return temp
	End Method