-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAiModule
More file actions
475 lines (339 loc) · 27.6 KB
/
AiModule
File metadata and controls
475 lines (339 loc) · 27.6 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
# read this whole sheet for ai module in verse fortnite understanding
Fortnite.com module
Learn technical details about the Fortnite.com module.
UEFN
Fortnite.com module
Fortnite.com
UI
Devices
InterpolationTypes
Vehicles
Teams
Playspaces
Game
FortPlayerUtilities
Characters
AI
AI module
Learn technical details about the AI module.
UEFN
AI module
Module import path: /Fortnite.com/AI
Fortnite.com
AI
Classes and Structs
Name Description
navigation_target
Interfaces
Name Description
focus_interface
fort_leashable
navigatable
Functions
Name Description
MakeNavigationTarget
Generate a navigation_target from any position
MakeNavigationTarget
Generate a navigation_target from an agent
Enumerations
Name Description
navigation_result
Result of a navigation request
MaintainFocus function
Learn technical details about the MaintainFocus function.
UEFN
MaintainFocus function
Look At specified location. Will never complete unless interrupted.
Verse using statement using { /Fortnite.com/AI }
MaintainFocus<public>(Location:vector3)<suspends><varies><transacts><no_rollback>:void
Parameters
MaintainFocus takes the following parameters:
Name Type Description
Location vector3
Attributes and Effects
The following attributes and effects determine how MaintainFocus behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
suspends Indicates that the function is async. Creates an async context for the body of the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
MaintainFocus function
Learn technical details about the MaintainFocus function.
UEFN
MaintainFocus function
Look At specified Agent. Will never complete unless interrupted.
Verse using statement using { /Fortnite.com/AI }
MaintainFocus<public>(Agent:agent)<suspends><varies><transacts><no_rollback>:void
Parameters
MaintainFocus takes the following parameters:
Name Type Description
Agent agent
Attributes and Effects
The following attributes and effects determine how MaintainFocus behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
suspends Indicates that the function is async. Creates an async context for the body of the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
fort_leashable interface
Learn technical details about the fort_leashable interface.
UEFN
fort_leashable interface
Verse using statement using { /Fortnite.com/AI }
Members
This interface has functions, but no data members.
Functions
Function Name Description
SetLeashPosition
Set custom leash position. 'InnerRadius' ranges from 0.0 to 20000.0 (in centimeters). 'OuterRadius' ranges from 0.0 to 20000.0 (in centimeters) and no less than 'InnerRadius'.
SetLeashAgent
Set the agent to be the new center of the leash. 'InnerRadius' ranges from 0.0 to 20000.0 (in centimeters). 'OuterRadius' ranges from 0.0 to 20000.0 (in centimeters) and no less than 'InnerRadius'.
ClearLeash
Removes the current leash.
Verse using statement using { /Fortnite.com/AI }
ClearLeash<public>()<varies><transacts><no_rollback>:void
Parameters
ClearLeash does not take any parameters.
Attributes and Effects
The following attributes and effects determine how ClearLeash behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
api
function
Set the agent to be the new center of the leash. 'InnerRadius' ranges from 0.0 to 20000.0 (in centimeters). 'OuterRadius' ranges from 0.0 to 20000.0 (in centimeters) and no less than 'InnerRadius'.
Verse using statement using { /Fortnite.com/AI }
SetLeashAgent<public>(Agent:agent, InnerRadius:float, OuterRadius:float)<varies><transacts><no_rollback>:void
Parameters
SetLeashAgent takes the following parameters:
Name Type Description
Agent agent
InnerRadius float
OuterRadius float
Attributes and Effects
The following attributes and effects determine how SetLeashAgent behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
Set custom leash position. 'InnerRadius' ranges from 0.0 to 20000.0 (in centimeters). 'OuterRadius' ranges from 0.0 to 20000.0 (in centimeters) and no less than 'InnerRadius'.
Verse using statement using { /Fortnite.com/AI }
SetLeashPosition<public>(Location:vector3, InnerRadius:float, OuterRadius:float)<varies><transacts><no_rollback>:void
Parameters
SetLeashPosition takes the following parameters:
Name Type Description
Location vector3
InnerRadius float
OuterRadius float
Attributes and Effects
The following attributes and effects determine how SetLeashPosition behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
(InCharacter:fort_character).GetFocusInterface extension
Learn technical details about the (InCharacter:fort_character).GetFocusInterface extension.
UEFN
(InCharacter:fort_character).GetFocusInterface extension
Get the focus_interface interface for the specified character.
Verse using statement using { /Fortnite.com/AI }
(InCharacter:fort_character).GetFocusInterface<native><public>()<decides><varies><transacts>:focus_interface
Parameters
GetFocusInterface takes the following parameters:
Name Type Description
InCharacter fort_character
Attributes and Effects
The following attributes and effects determine how GetFocusInterface behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
native Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data.
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
decides Indicates that the function can fail, and that calling this function is a failable expression. Function definitions with the decides effect must also have the transacts effect, which means the actions performed by this function can be rolled back (as if the actions were never performed), if there’s a failure anywhere in the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
Get the current fort_leashable interface for the specified character.
Verse using statement using { /Fortnite.com/AI }
(InCharacter:fort_character).GetFortLeashable<native><public>()<decides><varies><transacts>:fort_leashable
Parameters
GetFortLeashable takes the following parameters:
Name Type Description
InCharacter fort_character
Attributes and Effects
The following attributes and effects determine how GetFortLeashable behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
native Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data.
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
decides Indicates that the function can fail, and that calling this function is a failable expression. Function definitions with the decides effect must also have the transacts effect, which means the actions performed by this function can be rolled back (as if the actions were never performed), if there’s a failure anywhere in the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
Get the navigatable interface for the specified character.
Verse using statement using { /Fortnite.com/AI }
(InCharacter:fort_character).GetNavigatable<native><public>()<decides><varies><transacts>:navigatable
Parameters
GetNavigatable takes the following parameters:
Name Type Description
InCharacter fort_character
Attributes and Effects
The following attributes and effects determine how GetNavigatable behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
native Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data.
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
decides Indicates that the function can fail, and that calling this function is a failable expression. Function definitions with the decides effect must also have the transacts effect, which means the actions performed by this function can be rolled back (as if the actions were never performed), if there’s a failure anywhere in the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
MakeNavigationTarget function
Learn technical details about the MakeNavigationTarget function.
UEFN
MakeNavigationTarget function
Generate a navigation_target from any position
Verse using statement using { /Fortnite.com/AI }
MakeNavigationTarget<native><public>(Position:vector3)<varies><transacts><no_rollback>:navigation_target
Parameters
MakeNavigationTarget takes the following parameters:
Name Type Description
Position vector3
Attributes and Effects
The following attributes and effects determine how MakeNavigationTarget behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
native Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data.
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
Generate a navigation_target from an agent
Verse using statement using { /Fortnite.com/AI }
MakeNavigationTarget<native><public>(Target:agent)<varies><transacts><no_rollback>:navigation_target
Parameters
MakeNavigationTarget takes the following parameters:
Name Type Description
Target agent
Attributes and Effects
The following attributes and effects determine how MakeNavigationTarget behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
native Indicates that the definition details of the element are implemented in C++. Verse definitions with the native specifier auto-generate C++ definitions that a developer can then fill out its implementation. You can use this specifier on classes, interfaces, enums, methods, and data.
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
navigatable interface
Learn technical details about the navigatable interface.
UEFN
navigatable interface
Verse using statement using { /Fortnite.com/AI }
Members
This interface has functions, but no data members.
Functions
Function Name Description
GetCurrentDestination
Return the current destination of the NPC
NavigateTo
Navigate toward the specified target
StopNavigation
Stop navigation
Wait
Wait for a specific duration
Return the current destination of the NPC
Verse using statement using { /Fortnite.com/AI }
GetCurrentDestination<public>()<decides><varies><transacts>:vector3
Parameters
GetCurrentDestination does not take any parameters.
Attributes and Effects
The following attributes and effects determine how GetCurrentDestination behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
decides Indicates that the function can fail, and that calling this function is a failable expression. Function definitions with the decides effect must also have the transacts effect, which means the actions performed by this function can be rolled back (as if the actions were never performed), if there’s a failure anywhere in the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
Navigate toward the specified target
Verse using statement using { /Fortnite.com/AI }
NavigateTo<public>(Target:navigation_target, ReachRadius:float, AllowPartialPath:logic)<suspends><varies><transacts><no_rollback>:navigation_result
Parameters
NavigateTo takes the following parameters:
Name Type Description
Target navigation_target
ReachRadius float
AllowPartialPath logic
Attributes and Effects
The following attributes and effects determine how NavigateTo behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
suspends Indicates that the function is async. Creates an async context for the body of the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
StopNavigation function
Learn technical details about the StopNavigation function.
UEFN
StopNavigation function
Stop navigation
Verse using statement using { /Fortnite.com/AI }
StopNavigation<public>()<varies><transacts><no_rollback>:void
Parameters
StopNavigation does not take any parameters.
Attributes and Effects
The following attributes and effects determine how StopNavigation behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
Wait function
Learn technical details about the Wait function.
UEFN
Wait function
Wait for a specific duration
Verse using statement using { /Fortnite.com/AI }
Wait<public>(Duration:float)<suspends><varies><transacts><no_rollback>:void
Parameters
Wait takes the following parameters:
Name Type Description
Duration float
Attributes and Effects
The following attributes and effects determine how Wait behaves and how you can use it in your programs. For the complete list of attribute and effect specifiers, see the Specifiers Page.
Attribute Meaning
public The identifier is universally accessible. You can use this on modules, classes, interfaces, structs, enums, methods, and data.
Effect Meaning
suspends Indicates that the function is async. Creates an async context for the body of the function.
varies This effect indicates that the same input to the function may not always produce the same output. The varies effect also indicates that the behavior of the function is not guaranteed to stay the same with new versions of its containing package.
transacts This effect indicates that any actions performed by the function can be rolled back. The transacts effect is required any time a mutable variable (var) is written. You’ll be notified when you compile your code if the transacts effect was added to a function that can’t be rolled back. Note that this check is not done for functions with the native specifier.
no_rollback This is the default effect when no exclusive effect is specified. The no_rollback effect indicates that any actions performed by the function cannot be undone and so the function cannot be used in a failure context. This effect cannot be manually specified.
api
function
navigation_result enumeration
Learn technical details about the navigation_result enumeration.
UEFN
navigation_result enumeration
Result of a navigation request
Verse using statement using { /Fortnite.com/AI }
Enumerators
The navigation_result enumeration includes the following enumerators:
Name Description
Reached
The destination has been reached
PartiallyReached
The destination has been partially reached (AllowPartialPath was used)
Interrupted
Navigation has been interrupted before completion
Blocked
The navigating agent is blocked
Unreachable
The destination cannot be reached
Verse using statement using { /Fortnite.com/AI }