forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserUnit.lua
More file actions
178 lines (142 loc) · 3.24 KB
/
UserUnit.lua
File metadata and controls
178 lines (142 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
--- Class UserUnit
-- @classmod User.UserUnit
---
-- UserUnit:CanAttackTarget(target, rangeCheck)
function UserUnit:CanAttackTarget(target, rangeCheck)
end
---
-- GetArmy() -- returns the army index
function UserUnit:GetArmy()
end
---
-- blueprint = UserUnit:GetBlueprint()
function UserUnit:GetBlueprint()
end
---
-- GetBuildRate() -- return current unit build rate
function UserUnit:GetBuildRate()
end
---
-- table GetCommandQueue() - returns table of commands
function UserUnit:GetCommandQueue()
end
---
-- GetCreator() -- returns the units creator, or nil
function UserUnit:GetCreator()
end
---
-- string GetCustomName() -- get the current custom name, nil if none
function UserUnit:GetCustomName()
end
---
-- GetEconData() - returns a table of economy data
function UserUnit:GetEconData()
end
---
-- Entity:GetEntityId()
function UserUnit:GetEntityId()
end
---
-- GetFocus() -- returns the unit this unit is currently focused on, or nil
function UserUnit:GetFocus()
end
---
-- UserUnit:GetFootPrintSize()
function UserUnit:GetFootPrintSize()
end
---
-- GetFuelRatio()
function UserUnit:GetFuelRatio()
end
---
-- GetGuardedEntity() -- returns the units guard target, or nil
function UserUnit:GetGuardedEntity()
end
---
-- GetHealth() -- return current health
function UserUnit:GetHealth()
end
---
-- GetMaxHealth() -- return max health
function UserUnit:GetMaxHealth()
end
---
-- table GetMissileInfo() - returns a table of the missile info for this unit
function UserUnit:GetMissileInfo()
end
---
-- VECTOR3 GetPosition() - returns the current world posititon of the unit
function UserUnit:GetPosition()
end
---
-- table GetSelectionSets() -- get table of all selection sets unit belongs to
function UserUnit:GetSelectionSets()
end
---
-- GetShieldRatio()
function UserUnit:GetShieldRatio()
end
---
-- GetStat(Name[,defaultVal])
function UserUnit:GetStat(Name[, defaultVal])
end
---
-- UserUnit:GetUnitId()
function UserUnit:GetUnitId()
end
---
-- GetWorkProgress()
function UserUnit:GetWorkProgress()
end
---
-- bool HasSelectionSet(string) -- see if a unit belongs to a given selection set
function UserUnit:HasSelectionSet(string)
end
---
-- See if this unit already has an unload from transport queued up
function UserUnit:HasUnloadCommandQueuedUp()
end
---
-- bool = UserUnit:IsAutoMode()
function UserUnit:IsAutoMode()
end
---
-- bool = UserUnit:IsAutoSurfaceMode()
function UserUnit:IsAutoSurfaceMode()
end
---
-- IsDead() -- return true if the unit has been destroyed
function UserUnit:IsDead()
end
---
-- IsIdle() -- return true if the unit is idle
function UserUnit:IsIdle()
end
---
-- bool = UserUnit:IsInCategory(category)
function UserUnit:IsInCategory(category)
end
---
-- IsOverchargePaused() -- return current overcharge paused status
function UserUnit:IsOverchargePaused()
end
---
-- bool = UserUnit:IsRepeatQueue()
function UserUnit:IsRepeatQueue()
end
---
-- flag = UserUnit:IsStunned()
function UserUnit:IsStunned()
end
---
-- UserUnit:ProcessInfoPair()
function UserUnit:ProcessInfo()
end
---
-- RemoveSelectionSet(string) -- remove a selection set name from a unit
function UserUnit:RemoveSelectionSet(string)
end
---
-- SetCustomName(string) -- Set a custom name for the unit
function UserUnit:SetCustomName(string)
end