Soldier.say 267
Makes the soldier say a line based on the VoiceClip Enum
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | VoiceClip | The voiceclip type to make the soldier say. Check the VoiceClip table for all the possible values. |
| 2 | float | (Optional) The delay before the soldier says the line. Default is 0 |
Examples
Example 27
-- Spawns a german soldier at origin point
local sold = spawnSoldier("none", 8, "Germany_allies", Vector3(0,0,0))
-- Make the spawned soldier play the VoiceClip.scream_long clip every second while being alive
while sold.isAlive() do
sold.say(VoiceClip.scream_long)
sleep(1)
end