Soldier.say 3

Makes the soldier say a line based on the VoiceClip Enum


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1VoiceClipThe voiceclip type to make the soldier say. Check the VoiceClip table for all the possible values.
2float(Optional) The delay before the soldier says the line. Default is 0

Examples

-- 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

Back to Scripting API