mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#PLAYERTASKCONTROLLER - variable type checks
This commit is contained in:
parent
5dd4435b7d
commit
1c24580d3f
@ -133,7 +133,7 @@ function PLAYERTASK:New(Type, Target, Repeat, Times, TTSType)
|
|||||||
self.TTSType = TTSType or "close air support"
|
self.TTSType = TTSType or "close air support"
|
||||||
self.lastsmoketime = 0
|
self.lastsmoketime = 0
|
||||||
|
|
||||||
if Repeat then
|
if type(Repeat) == "boolean" and Repeat == true and type(Times) == "number" and Times > 1 then
|
||||||
self.Repeat = true
|
self.Repeat = true
|
||||||
self.RepeatNo = Times or 1
|
self.RepeatNo = Times or 1
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user