mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Periodically test all tags on objects for corner cases
This commit is contained in:
parent
431a21044a
commit
dec9235810
@ -58,15 +58,14 @@ if (_object getVariable [QGVAR(testVar), false]) then {
|
||||
_object setVariable [QGVAR(attachedTags), []];
|
||||
};
|
||||
}];
|
||||
|
||||
} else {
|
||||
// The object doesn't supports variables
|
||||
// Use the more costly alternative: periodic testing
|
||||
GVAR(tagsToTest) pushBack [_tag, _tagPosASL, _vectorDirAndUp];
|
||||
|
||||
// Run the tes
|
||||
if (!GVAR(testingThread)) then {
|
||||
call FUNC(tagTestingThread);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
// Periodic test the tag:
|
||||
// - For object that don't support handledamage
|
||||
// - For object that do, to support doors opening/closing, etc
|
||||
GVAR(tagsToTest) pushBack [_tag, _tagPosASL, _vectorDirAndUp];
|
||||
|
||||
// Run the test
|
||||
if (!GVAR(testingThread)) then {
|
||||
call FUNC(tagTestingThread);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user