Vivum Target
Linestrip
Learn how to configure a linestrip for your target
Overview
A linestrip is a 3D rendered line that is projected under the star of the target and points to any position, offset, or entity bone. It can be used to render the target more distinctly. If a target has an offset (like vehicle wheels or doors), a linestrip can greatly improve the clarity of the original position or entity of the target and minimize the out-of-place feeling of an offset target.
Implementation
| @class Linestrip | ||
|---|---|---|
| Field | Type | Description |
entity? | number | A handle to an entity to take the position from. |
position? | vector3 | The position to draw the linestrip to, this will be overriden if |
offset? | vector3 | Offset of the entity coords or specified position. |
main.lua
local _, max = GetModelDimensions(GetEntityModel(vehicle)) exports["vivum-target"]:AddTarget({ name = "roof-linestrip", target = { entity = { handle = vehicle, offset = { absolute = vector3(0, 0, max.z + 0.5), }, }, }, linestrip = { entity = vehicle, offset = vector3(0, 0, max.z) }, })