Hpl3:Game:scripting:user modules:emotion

From Frictional Wiki
Jump to navigation Jump to search

Emotion

Helper function prefix: Emotion_

This module implements heavy breathing and heartbeats effects, allowing you to programmatically change volume and rate of both.

Important Functions

Emotion_StartHeartbeat

Start a regular heartbeat sound.

Emotion_StopHeartbeat

Stop a heartbeat sound.

Emotion_SetHeartbeatProperties

Alter the properties of an existing heartbeat.

Emotion_StartBackgroundBreath

Start breathing sounds (normally, or fearful).

Emotion_StopBackgroundBreath

Stop breathing sounds.

Emotion_PlayEventBreath

Play a particular breathing sound effect (requires soundfiles).