KnightHawk75
Posts: 1450
Joined: 11/15/2018 Status: offline
|
Recently answered here http://www.matrixgames.com/forums/fb.asp?m=4974239 (post#12), though specific to the persons need regarding a 'specific unit' level of specificity in the TargetFilter, omit level of specificity if not needed in the filter options. Put more plainly: When mode is "add" and type = "UnitEntersArea" further options are: TargetFilter = {} where it can contains one or more of following comma delimited as needed in the table if needed, and...IF being used at all. TARGETSIDE = 'TextSideName ie Blue', TARGETTYPE = 'TextType ie Facility', TARGETSUBTYPE = 'interger value of the ie class's subtype 5001', SPECIFICUNITCLASS = 'integer value of the dbid\class ie 2784', SPECIFICUNITID = 'Guid of the exact unit(technically could be a string name I think but avoid that)' Area = { comma delimited list of existing RP names here ie 'MyRP-1','MyRP-2','MyRP-3','MyRP-4'} ETOA = 'integer of dotnet-ticktime datetime type representing entering time. leave empty to be start scenario time' LTOA = 'integer of dotnet-ticktime datetime type representing leaving time. leave empty to be end of scenario time.' NOT = 'boolean if the trigger is to be reversed use true. No need to include unless setting to true.' ExitArea = 'boolean representing if the trigger is reversed ie true is treated as unit exits area trigger. no need to include unless setting to true.' BTW - One way to see what the options are when dealing with this is to dump an existing created one, either dumping the table entries, or exporting the mission. PS: If you need to calculate dotnet-ticktime to and from normal game timestamps you can use the following: function convertDotNetTickTimeToLuaTimestamp(theDotNetStamp)
return (tonumber(theDotNetStamp) - 621355968000000000) / 10000000
end
function convertLuaTimestampToDotNetTickTime(theUnixStamp)
return 621355968000000000 + (tonumber(theUnixStamp) * 10000000)
end
Let me know if something doesn't click\make sense to you.
< Message edited by KnightHawk75 -- 3/24/2021 1:12:04 AM >
|