Arma III Alpha #5 (Editor - Tasks, Objectives, HUD Waypoints)

Опубликовано: 02 Март 2026
на канале: SkwittGaming
2,033
15

How to create, succeed, fail and cancel tasks by using triggers.

Arma Scripting Commands: http://community.bistudio.com/wiki/Ca...

Example Code:

Task Examples

Creating Task
task1 = player1 createSimpleTask ["Destroy Helicopter"]; player1 setCurrentTask task1; task1 setSimpleTaskDescription ["Destroy Ka-60 Helicopter in Air Station Mike-26", "Mission Objective", "Plant Explosives"]; task1 setTaskState "Assigned"; task1 setSimpleTaskDestination (getMarkerPos "targetMarker"); taskhint ["Task Assigned\nDestroy Helicopter", [1, 1, 1, 1], "taskNew"]

Ending Task (Success)
task1 setTaskState "Succeeded"; taskhint ["Task Complete\nHelicopter Destroyed", [0.2, 0.8, 0, 1], "taskDone"]; task2 = player1 createSimpleTask ["EVAC"]; task2 setSimpleTaskDescription ["Evac via Chopper at Pick Up", "EVAC", "EVAC"]; player1 setCurrentTask task2; task2 setTaskState "Assigned"; task2 setSimpleTaskTarget [evac1, true]; taskhint ["Task Assigned\nEVAC", [1, 1, 1, 1], "taskNew"]

Ending Task (Cancelled, Failure)
task2 setTaskState "Cancelled"; taskhint ["EVAC Chopper Destroyed\nFind another way off the island", [0.9, 0, 0.1, 1], "taskFailed"]; task2 setSimpleTaskDestination (getMarkerPos "exitPos")