Remarks
Obtains 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 TriggersGetPosPerc (
nPlayerIndex as Int16,
nTriggerID as Int16
) as Single
|
|
[C#]
public float TriggersGetPosPerc (
Int16 nPlayerIndex,
Int16 nTriggerID
);
|
|
[C++]
public: float TriggersGetPosPerc (
Int16 nPlayerIndex,
Int16 nTriggerID
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the involved player
|
nTriggerID
|
Number representing the identifier of the new trigger
|
Return value
Value
|
Meaning
|
|
|
Negative value
|
An error occurred (see the LastError property for further error details)
|
Value > 0
|
The trigger position expressed in percentage
|
|