MGT

Untitled

MGT
Aug 27th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. private ['_ZCP_CVC_radius','_ZCP_CVC_center','_ZCP_CVC_location','_dir','_ZCP_CVC_object','_ZCP_CVC_circleObjs'];
  2. _ZCP_CVC_circleObjs = [];
  3. _ZCP_CVC_center = _this select 0;
  4. _ZCP_CVC_radius = _this select 1;
  5.  
  6. for '_i' from 0 to 360 step (150 / _ZCP_CVC_radius)*2 do
  7. {
  8. _ZCP_CVC_location = [(_ZCP_CVC_center select 0) + ((cos _i) * _ZCP_CVC_radius), (_ZCP_CVC_center select 1) + ((sin _i) * _ZCP_CVC_radius),0];
  9. _ZCP_CVC_object = createVehicle ['Sign_Sphere25cm_F', _ZCP_CVC_location, [], 0, 'CAN_COLLIDE'];
  10. if (count playableUnits < 30) then
  11. {
  12. _ZCP_CVC_mineV = createMine ["ATMine", _ZCP_CVC_location, [], 0];
  13. _ZCP_CVC_mineP = createMine ["APERSBoundingMine", _ZCP_CVC_location, [], 0];
  14. _ZCP_CVC_mineV allowDamage false;
  15. _ZCP_CVC_mineP allowDamage false;
  16. };
  17. _ZCP_CVC_object setObjectTextureGlobal [0, ZCP_circleNeutralColor];
  18. _nil = _ZCP_CVC_circleObjs pushBack _ZCP_CVC_object;
  19. };
  20. _ZCP_CVC_circleObjs
Advertisement
Add Comment
Please, Sign In to add comment