Part 2: In part two we look at adding waypoints to the group we spawned in part one. All code and website links featured in this video can be found bellow.
Part1: is here: [ Ссылка ]
Part3: is here: [ Ссылка ]
Demo: [ Ссылка ]
NOTE: be aware when copying and pasting code from here, that utube adds random hyphen (-) for no reason the following code should have NO hyphens!
Your Triggers On Act = Nul = execVM "myscript.sqf";
Script 1 (Simple Waypoints):
_mygroup = [getmarkerpos "mygroupstart", EAST, ["O_officer_F","O_officer_F","O_officer_F","O_officer_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
_wp1 = _mygroup addWaypoint [getmarkerpos "wp1", 0];
_wp2 = _mygroup addWaypoint [getmarkerpos "wp2", 0];
Script 2 (Complex Waypoints):
_mygroup = [getmarkerpos "mygroupstart", EAST, ["O_officer_F","O_officer_F","O_officer_F","O_officer_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
_wp1 = _mygroup addWaypoint [getmarkerpos "wp1", 0];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointSpeed "FULL";
_wp1 setWaypointBehaviour "AWARE";
_wp1 setWaypointFormation "LINE";
_wp2 = _mygroup addWaypoint [getmarkerpos "wp2", 0];
_wp2 setWaypointType "SAD";
_wp2 setWaypointSpeed "FULL";
_wp2 setWaypointBehaviour "AWARE";
_wp2 setWaypointFormation "COLUMN";
_wp3 = _mygroup addWaypoint [getmarkerpos "mygroupstart", 0];
_wp3 setWaypointType "cycle";
_wp3 setWaypointSpeed "FULL";
_wp3 setWaypointBehaviour "AWARE";
_wp3 setWaypointFormation "COLUMN";
Website Links:
Notepad ++ = [ Ссылка ]
addWaypoint = [ Ссылка ]
setWaypointSpeed = [ Ссылка ]
setWaypointType = [ Ссылка ]
setWaypointBehaviour = [ Ссылка ]
setWaypointFormation = [ Ссылка ]
Links to Wiki Pages Not Featured in this video (useful):
setWaypointTimeout = [ Ссылка ]
setWaypointCompletionRadius = [ Ссылка ]
setWaypointDescription = [ Ссылка ]
Re-run the script when everyone In the group is dead example: [ Ссылка ]
"This video was created using content of Bohemia Interactive a.s."
"Copyright © 2013 Bohemia Interactive a.s. All rights reserved."
"See www.bistudio.com for more information."
Ещё видео!