m (formatting) |
|||
Line 12: | Line 12: | ||
===Play sound=== | ===Play sound=== | ||
− | ;<code>[gn:act_playSoundFromTarget]|[source]</code> | + | :;<code>[gn:act_playSoundFromTarget]|[source]</code> |
− | {| class="wikitable sortable" style="font-size: 85%; text-align: left;" | + | :{| class="wikitable sortable" style="font-size: 85%; text-align: left;" |
|- | |- | ||
! scope="col" | Parameter | ! scope="col" | Parameter | ||
! scope="col" | Description | ! scope="col" | Description | ||
|- | |- | ||
− | | [[source]] | + | | <code>[[source]]</code> |
| [[source]] from where the sound file will be used | | [[source]] from where the sound file will be used | ||
* Valid [[source|sources]]: | * Valid [[source|sources]]: | ||
** <code>@string</code> | ** <code>@string</code> | ||
** <code>@assets</code> | ** <code>@assets</code> | ||
− | ** [[GnMediaAction]] | + | ** <code>[[GnMediaAction]]</code> |
** [[:Category:Variables|Variables]] | ** [[:Category:Variables|Variables]] | ||
− | *** [[Datatypes#audio|audio]] | + | *** <code>[[Datatypes#audio|audio]]</code> |
|- | |- | ||
|} | |} | ||
====Example==== | ====Example==== | ||
− | <code>@assets/sound.mp3</code> - asset value | + | :<code>@assets/sound.mp3</code> - asset value<br> |
− | <code>[gn:act_playSoundFromTarget]|[@assets/sound.mp3]</code> | + | :; ⤷ <code>[gn:act_playSoundFromTarget]|[@assets/sound.mp3]</code> |
<hr> | <hr> |
Latest revision as of 16:17, 12 July 2017
gn:act_playSoundFromTarget
- Description
- Action used to play sound from various sources when executed.
- If there are multiple sounds in the target, they will be played in order as they are stored in the target.
- Supported file types are
.mp3
&.wav
- Action returns
- void
Action signatures
Play sound
[gn:act_playSoundFromTarget]|[source]
Parameter Description source
source from where the sound file will be used - Valid sources:
-
@string
-
@assets
-
GnMediaAction
- Variables
-
- Valid sources:
Example
@assets/sound.mp3
- asset value
- ⤷
[gn:act_playSoundFromTarget]|[@assets/sound.mp3]
- ⤷