Advertisement
Guest User

setFarm.sqf

a guest
Mar 11th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  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..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement