Skip to content

Commit 46db356

Browse files
committed
cutscene skip callback
1 parent 10351a2 commit 46db356

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

c/uwapi/uwapi/modules/scriptsServer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ extern "C"
4949
UNNATURAL_API void uwPlayerCamera(uint32 player, uint32 tileIndex, bool resetToDefaultZoomAndOrientation, float duration, float smooth); // use -1 to send to all players, use NaN for default values
5050
UNNATURAL_API void uwPlayerCameraPosition(uint32 player, uint32 tileIndex, float yaw, float pitch, float eyeDistance, float duration, float smooth); // use -1 to send to all players, use NaN for default values
5151
UNNATURAL_API void uwPlayerCameraTransform(uint32 player, const float targetPosition[3], const float eyePosition[3], const float eyeUp[3], float duration, float smooth); // use -1 to send to all players, use NaN for default values
52-
UNNATURAL_API float uwPlayerDialogue(uint32 player, uint32 avatarId, uint32 voicelineId, uint32 translatedTextId); // use -1 to send to all players, use 0 for no avatar/voice/text, returns duration of the voice/text
52+
UNNATURAL_API void uwPlayerDialogue(uint32 player, uint32 avatarId, uint32 voicelineId, uint32 translatedTextId); // use -1 to send to all players, use 0 for no avatar/voice/text
5353

5454
UNNATURAL_API void uwCutsceneBegin(void);
5555
UNNATURAL_API void uwCutsceneEnd(void);
5656
UNNATURAL_API void uwCutsceneGameSimulation(bool runGameSimulation);
5757
UNNATURAL_API float uwCutsceneTime(void); // seconds since start of the cutscene
58+
UNNATURAL_ENTRY void uwCutsceneSkipCallback(void);
5859

5960
UNNATURAL_API void uwStandardVictoryConditions(bool enable);
6061
UNNATURAL_API void uwSendChat(const char *msg, UwChatTargetFlags flags, uint32 targetId);

sphinx/source/concepts/entities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ This entity represents a signal sent by an ally.
117117

118118
- ``Attention`` - generic warning signal.
119119
- ``Attack`` - request to attack this location.
120-
- ``Defend`` - request to quard this location.
120+
- ``Defend`` - request to guard this location.
121121
- ``Rally`` - prepare troops there and await further signals.
122122
- ``Build`` - build base in this location.
123123
- ``Evacuate`` - request to leave this area.

0 commit comments

Comments
 (0)