Forum Jump :

Author Message


Posts: 38
Rank:


Level: Member

Country: us
Location:
Occupation:
Age: 40
In-game name:

 
#182199 Posted at 2015-08-23 06:33        
     
hello, I have read and attempted everything I could find online, to no avail. I guess I'll give three examples of scripts I have tried. maybe a basic error on my part will shed light on my failure.
1)
_wp = man1 addWaypoint [obj1, 0]; 
_wp setWaypointType "MOVE"; 
_wp1 = man1 addWaypoint [obj1, 0];  
_wp1 setWaypointType "MOVE"; 
_wp2 = man1 addWaypoint [man1, 0]; 
_wp2 setWaypointType "CYCLE";

2)
wayPoint0 = man1 addWaypoint [obj1, 0]; 
wayPoint0 setWaypointType "MOVE"; 
wayPoint1 = man1 addWaypoint [obj1, 0];  
wayPoint1 setWaypointType "MOVE"; 
wayPoint2 = man1 addWaypoint [man1, 0]; 
wayPoint2 setWaypointType "CYCLE";

3)
_wp = _grp addWaypoint [obj1, 0]; 
_wp setWaypointType "MOVE"; 
_wp1 = _grp addWaypoint [obj1, 0];  
_wp1 setWaypointType "MOVE"; 
_wp2 = _grp addWaypoint [man1, 0]; 
_wp2 setWaypointType "CYCLE";[/

None of these work for creating waypoints for AI...can anyone tell me where I have gone wrong?

P.S. I'm using markers to randomize where an ammo cash will Appear and attempting to have a basic guard patrol around it. Using GL as the base for the second waypoint. Triggers to Check where the ammo stash is, then a trigger to place the patrol team around the stash. I have put in to the triggers a sequential order of timing, as a buffer, so as to not run to many init and exec calls at one time.

"If you tremble with indignation at every injustice, then you are a comrade of mine." -"Che" Guevara-