Soldier.setOnFire 6

Sets the current soldier on fire.
Notice: The fire does not damage the soldier.


Return value

Return TypeDescription
voidThis function doesn't return anything

No parameters defined for this function.


Examples

-- Spawn a German soldier at origin point
local sold = spawnSoldier("none", 8, "Germany_allies", Vector3(0,0,0))

-- After 10 seconds, set the soldier on fire
sleep(10)
sold.setOnFire()


Back to Scripting API