FZ_FormBase.CopyUnitModel

Copies unit model

Public Shared Function CopyUnitModel( _
    ByVal srcSceneNo As Integer, _
    ByVal srcUnitNo As Integer, _
    ByVal srcModelNo As Integer, _
    ByVal destUnitNo As Integer, _
    ByVal destModelNo As Integer, _
) As Integer

Parameters
srcSceneNo
Scene number of the copy source
Input
srcUnitNo
Unit number of the copy source
Input
srcModelNo
Model number of the copy source
Input
destUnitNo
Unit number of the copy destination
Input
destModelNo
Model number of the copy destination
Input

Return Value
Returns 0 when copying of unit model succeeded.
Otherwise returns a non-zero value.

Description
Copies the unit figure of the specified copy source scene number/unit number/model number to the unit figure of the specified copy destination unit number/model number.
The destination scene is the current scene.

Example
    Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

        ' Copies the unit figure of the scene number 0/unit number 0/model number 0 to the unit figure of the unit number 1/model number 2
        CopyUnitModel(0, 0, 0, 1, 2)

    End Sub