Warning: file_put_contents(/ff_e178549f6bb0f023785ada2694032ded84cf2fa4db8d4571.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setSimpleTaskTarget - OFPEC Scripting Command Reference | OFPEC The Editing Center

task setSimpleTaskTarget [target, precisePosition]

Operand types

task: Task
[target, precisePosition] : Array

Type of returned value


Attach a target to the simple task.
Overrides setSimpleTaskDestination

task: Task
target: Object
precisePosition: Boolean - use exact position of the target for map marker / HUD indicator instead of the position known to the owner of the task (depending on the knowledge about the target)

Used In



task setSimpleTaskTarget [targetVehicle, true];