mirror of
https://github.com/omltcat/dcs-lua-definitions.git
synced 2025-11-10 15:48:52 +00:00
Initial commit
This commit is contained in:
35
library/mission/types.lua
Normal file
35
library/mission/types.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
---@meta
|
||||
|
||||
---Object being called when a event handler is triggered.<br>
|
||||
---Depending on the event, the object may have different fields.<br>
|
||||
---@class event
|
||||
---@field id integer
|
||||
---@field time number
|
||||
---@field initiator Unit?
|
||||
---@field weapon Weapon?
|
||||
---@field weapon_name string?
|
||||
---@field target Unit?
|
||||
---@field comment string?
|
||||
---@field subPlace number?
|
||||
|
||||
---`vec2.x = vec3.x = north`<br>`vec2.y = vec3.z = east`
|
||||
---@class vec2
|
||||
---@field x number positive x is north
|
||||
---@field y number positive y is east
|
||||
|
||||
---`vec3.x = north`<br>`vec3.y = up`<br>`vec3.z = east`
|
||||
---@class vec3
|
||||
---@field x number positive x is north
|
||||
---@field y number positive y is up
|
||||
---@field z number positive z is east
|
||||
|
||||
---A table describing how a unit's local nose, up, right axes translate to world axes using three unit vectors. Also contains its location.<br>`pos.x = vec3` unit vector of nose direction<br>`pos.y = vec3` unit vector of up direction<br>`pos.z = vec3` unit vector of right direction<br>`pos.p = vec3` location of the object
|
||||
---@class pos3
|
||||
---@field x vec3 nose unit vector
|
||||
---@field y vec3 up unit vector
|
||||
---@field z vec3 right unit vector
|
||||
---@field p vec3 location vector
|
||||
|
||||
---@class zone
|
||||
---@field point vec3
|
||||
---@field radius number
|
||||
Reference in New Issue
Block a user