How to use DrawTextPrimitive?
I'm not sure what the proper syntax is for std::string text in DrawTextPrimitive.
Let's say I want to have small text that says "TARGET LOCK" centered over an actor that's locally defined as TargetMO. I assume it's similar to DrawLinePrimitive which works in the same Lua script using something like FrameMan:DrawLinePrimitive(TargetMO.Pos,TargetMO.Pos+Vector(5,0),13);, so I would use FrameMan:DrawTextPrimitive(TargetMO.Pos, std::string text, 1, 1), but this doesn't work if I replace std::string text with "TARGET LOCK" like so: FrameMan:DrawTextPrimitive(TargetMO.Pos, "TARGET LOCK", 1, 1) and I get this error message:
ERROR: no overload of 'FrameManager:DrawTextPrimitive' matched the arguments (FrameManager, Vector, string, number, number)
FrameManager:DrawTextPrimitive(Vector, string, boolean, number)
I've also tried without quotes around the text and various variations of
std::string text = "TARGET LOCK"
FrameMan:DrawTextPrimitive(TargetMO.Pos, std::string text, 1, 1)
But I don't really know what I'm doing here and there's not much about this or similar things online, or I don't know what to look for.
How do I enter the text to draw?