Copying a Object and Retaining its values?

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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