Copyright © 2005-2019 MultiMedia Soft

TriggersSetPosPerc method

Previous pageReturn to chapter overviewNext page

Remarks

 

Modifies the current position for the given trigger.

 

See the How to add Triggers and Cue Points to a player section for further details about triggers.

 

 

Syntax

 

[Visual Basic]

Public Function TriggersSetPosPerc (

nPlayerIndex as Int16,

nTriggerID as Int16,

nTriggerPosPerc as Int32

) as enumErrorCodes


 

[C#]

public enumErrorCodes TriggersSetPosPerc (

Int16 nPlayerIndex,

Int16 nTriggerID,

Int32 nTriggerPosPerc

);


 

[C++]

public: enumErrorCodes TriggersSetPosPerc (

Int16 nPlayerIndex,

Int16 nTriggerID,

Int32 nTriggerPosPerc

);


 

 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the involved player

nTriggerID

Number representing the identifier of the new trigger

nTriggerPosPerc

Number representing the trigger position expressed in percentage.

If this position should be already assigned to another trigger, the existing trigger would be removed from the list of existing triggers and replaced by the new one.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.WARNING_TRIGGER_REMOVED (1)

An existing trigger having the same position has been removed from the list of existing triggers

enumErrorCodes.NOERROR (0)

The method call was successful.