The "vngen_textbox_modify_direct" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | real/string | The ID of the textbox to modify (or keyword all for all textboxes) |
x | real | The horizontal position to display the textbox, relative to the global offset |
y | real | The vertical position to display the textbox, relative to the global offset |
z | real | The drawing depth of the textbox, relative to other textboxes only |
xscale | real | The horizontal scale multiplier, where 1 is default |
yscale | real | The vertical scale multiplier, where 1 is default |
rot | real | The textbox rotation, in degrees |
#
DescriptionApplies a new position, orientation, and scale to the input entity ID directly, outside the qScript loop.
All modifications made with this script are permanent and will persist until another modification is performed.
As this script is not an action, care should be taken in deciding when and where to execute it. If both *_modify
and *_modify_direct
scripts are executed together, whichever is run last will override the other.
#
ExampleThis will map the textbox to the mouse, allowing the user to click and drag the textbox to a new position on the screen.