Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

setFarm.sqf

By: a guest on Mar 11th, 2014  |  syntax: None  |  size: 0.75 KB  |  views: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // set entity as farmer - primary production unit
  2. // produces food for transport to market (in theory)
  3.  
  4. // init vars
  5. _farmer = _this select 0;
  6. _loadbay = _this select 1;
  7. _deliverbay = _this select 2;
  8. _prodRate = 1;
  9. _produceType = ["Land_Misc_Cargo1E_EP1", "CargoCont_Net1_H", "Fort_Crate_wood"];
  10. _useType = _produceType select 0;
  11. _acceptsType = ["Land_Misc_Cargo1E_EP1", "CargoCont_Net1_H", "Fort_Crate_wood"];
  12.  
  13.  
  14. // detect drop offs
  15. [_farmer, _deliverbay, _acceptsType] execVM "scripts\tot\startDelivery.sqf";
  16.  
  17. //start production option added to npc
  18. _x = _farmer addAction ["Start Production", "scripts\tot\startProduction.sqf", [_farmer, _loadbay, _deliverbay, _useType, _prodRate]];
  19.  
  20. //more stuff to happen later re: production rate & inbound goods..
clone this paste RAW Paste Data