Dyn.TriggerOutPort

Pilus edited this page Aug 11, 2015 · 1 revision
Clone this wiki locally

Syntax:

dyn.TriggerOutPort(portGuid)

Arguments:

dyn.TriggerOutPort() has 1 required argument.

portGuid
''String''
The port to trigger. In a script node, these are either "portA" or "portB".

Example:

if UnitSex("player") == 1 then

dyn.TriggerOutPort("portA")

else

dyn.TriggerOutPort("portB")

end

This function call is used in an advanced item script node to trigger one of the out ports on the node. The script here triggers a port based on the results of the player's sex.