* Added connection to PlayerTask/Controller
#PLAYERTASK
* Added helper functions
This commit is contained in:
Applevangelist
2022-10-12 12:36:06 +02:00
parent a777b40613
commit 7afe76212d
2 changed files with 80 additions and 10 deletions

View File

@@ -332,6 +332,16 @@ function PLAYERTASK:GetFreetextTTS()
return self.FreetextTTS
end
--- [USER] Add a short free text description for the menu entry of this task.
-- @param #PLAYERTASK self
-- @param #string Text
-- @return #PLAYERTASK self
function PLAYERTASK:SetMenuName(Text)
self:T(self.lid.."SetMenuName")
self.Target.name = Text
return self
end
--- [User] Check if task is done
-- @param #PLAYERTASK self
-- @return #boolean done