Home   Help Search Login Register  

Author Topic: CreateUnit/set waypoint Question  (Read 4453 times)

0 Members and 1 Guest are viewing this topic.

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: CreateUnit Question
« Reply #15 on: 08 May 2007, 00:29:43 »
What is __enemy with two "_"?

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re: CreateUnit Question
« Reply #16 on: 08 May 2007, 00:34:48 »
Quote
What is __enemy with two "_"?

lol sorry bout that, that was not the problem

that is my tired little fingers workin away

its not supposed to be there i edited the typo

Code: [Select]
_patrol1 = _enemy addWaypoint [_wp1, 0];
_patrol2 = _enemyaddWaypoint [_wp2, 0];
_patrol3 = _enemy addWaypoint [_wp3, 0];
_patrol4 = _enemy addWaypoint [_wp4, 0];
_patrol5 = _enemy addWaypoint [_wp1, 0];
[_enemy, 5] setWaypointType "CYCLE";
« Last Edit: 08 May 2007, 00:36:29 by IGWedge »

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: CreateUnit Question
« Reply #17 on: 08 May 2007, 01:19:55 »
Did you try:
Code: [Select]
_patrol5 setWaypointType "CYCLE";?

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re: CreateUnit Question
« Reply #18 on: 08 May 2007, 18:52:30 »
It doesnt seem to matter what i do i keep getting

Code: [Select]
error 0 elements provided, 3 expected
Does anyone know what it means/how i can fix it....

I even tried executing it as a seperate "patrol.sqf" but i stil got the same error

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: CreateUnit/set waypoint Question
« Reply #19 on: 08 May 2007, 19:31:31 »
What is for example _wp1?

addWaypoint requires a position and the placement radius
Code: [Select]
somesoldier/group addWaypoint [position,radius (in meters)]If _wpX is not a position it will cause an error..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.