Click or drag to resize

PlayerControllerHelperAddControllerT Method (Int32, Boolean)

Assigns a controller to this Player.

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void AddController<T>(
	int controllerId,
	bool removeFromOtherPlayers
)
where T : Controller

Parameters

controllerId
Type: SystemInt32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0.
removeFromOtherPlayers
Type: SystemBoolean
Unassign this controller from all other players.

Type Parameters

T
Controller type
See Also