Stops the Theme currently playing. Psai will keep silent for some time and then wake up with the Basic Mood that was triggered the last.

Namespace: psai.net
Assembly: psaiCoreDotNet (in psaiCoreDotNet.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public PsaiResult GoToRest(
	bool immediately,
	float fadeOutSeconds
)

Parameters

immediately
Type: System..::..Boolean
True: Go to rest immediately by fading out. False: play an End-Segment
fadeOutSeconds
Type: System..::..Single
the fade-out time in seconds

Return Value

Type: PsaiResult

Remarks

The period of time psai will remain silent can be authored per Basic Mood in the psai Editor.

See Also