Announcement

Collapse
No announcement yet.

Custom Random Patrol Script

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Random Patrol Script

    A script for the video tutorial TACTICALGAMER.COM ARMA 3 EDITOR TUTORIAL 9: CUSTOM RANDOM PATROL

    Code:
    //player sideChat "randomPatrol.sqf is running.";
    // call by using pat = []execVM "randomPatrol.sqf";
    // by |TG-189th| Unkl for TacticalGamer.com and all the A3 budding mission makers (I'm a noob too lol)
    
    iWantToEndThisScript = false;
    
    if (isServer) then 
    {
    	_patrolPoints = [p1,p2,p3,p4,p5,p6,p7,p8,p9];
    	_patrols = [patrol1,patrol2,patrol3];
    	_nextPoint = "p1";
    	_timeDelay = 20;
    	//player sideChat "isServer is true";
    	
    		{
    			_nextPoint = ((round random count _patrolPoints) - 1);
    			_x move (getPos (_patrolPoints select _nextPoint));
    			player sideChat format ["%1 patrol is moving to %2",_x,_nextPoint];
    			_timeDelay = ((round random 30) + 30);
    			sleep _timeDelay;
    		}forEach _patrols;
    	if (iWantToEndThisScript = false) then
    	{
    		_pat = []execVM "randomPatrol.sqf";
    	};
    };
    |TG-189th| Unkl
    ArmA 3 Game Officer
    Dean of Tactical Gamer University
    189th Infantry Brigade Member
    SUBMIT A RIBBON NOMINATION OR CONTACT AN ARMA ADMIN
    "We quickly advance in the opposite direction and take cover in a house on the SW side of town." - BadStache

Connect

Collapse

TeamSpeak 3 Server

Collapse

Advertisement

Collapse

Twitter Feed

Collapse

Working...
X