Advertisement
Demonburger

Spawn Objjects for Namalsk Trader

Dec 10th, 2020
1,669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. static void SpawnObject(string type, vector position, vector orientation)
  2. {
  3. auto obj = GetGame().CreateObjectEx(type, position, ECE_SETUP | ECE_UPDATEPATHGRAPH | ECE_CREATEPHYSICS);
  4. obj.SetPosition(position);
  5. obj.SetOrientation(orientation);
  6. obj.SetOrientation(obj.GetOrientation());
  7. obj.SetFlags(EntityFlags.STATIC, false);
  8. obj.Update();
  9. obj.SetAffectPathgraph(true, false);
  10. if (obj.CanAffectPathgraph()) GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(GetGame().UpdatePathgraphRegionByObject, 100, false, obj);
  11. }
  12.  
  13.  
  14. //ATMS
  15. SpawnObject("DC_BankingATM", "7246.01 238.252 7038.83", "-8.999998 0.000000 0.000000"); //Safe Trader
  16.  
  17. // Tara Trader
  18. SpawnObject("bldr_hbarrier_round", "7243.262695 239.141342 7025.149902", "12.691935 0.000000 0.000000");
  19. SpawnObject("bldr_hbarrier_round", "7238.111328 239.141342 7027.649414", "52.748150 -0.000000 -0.000000");
  20. SpawnObject("bldr_hbarrier_round", "7236.049805 239.188004 7032.890137", "100.096275 0.000000 0.000000");
  21. SpawnObject("bldr_hbarrier_round", "7238.111328 239.159866 7038.243164", "137.243286 0.000000 -0.000000");
  22. SpawnObject("bldr_hbarrier_round", "7248.669922 239.141342 7026.606934", "-27.000010 0.000000 0.000000");
  23. SpawnObject("bldr_hbarrier_round", "7243.145020 239.185364 7040.863281", "-179.999939 0.000000 -0.000000");
  24. SpawnObject("Land_Mil_GuardShed", "7247.792480 238.784241 7027.925781", "143.999969 0.000000 -0.000000");
  25. SpawnObject("Land_Mil_GuardShed", "7243.382813 238.783585 7026.812500", "-171.000031 0.000000 -0.000000");
  26. SpawnObject("Land_Mil_GuardShed", "7239.398926 238.799194 7028.716797", "-131.963409 0.000000 -0.000000");
  27. SpawnObject("Land_Mil_GuardShed", "7237.911133 238.850739 7032.817383", "-89.999977 0.000000 0.000000");
  28. SpawnObject("bldr_mil_guardshed", "7239.458008 238.817307 7037.260742", "-45.000000 0.000000 0.000000");
  29. SpawnObject("Land_Mil_GuardShed", "7243.605957 238.813538 7039.163086", "-8.999998 0.000000 0.000000");
  30. SpawnObject("Land_Mil_CamoNet_Roof_east", "7240.221680 239.751160 7030.966309", "63.000000 0.000000 0.000000");
  31. SpawnObject("ExpansionSign_Trader_Consumables", "7247.086426 237.862427 7028.767090", "143.999969 0.000000 -0.000000");
  32. SpawnObject("ExpansionSign_Trader_Weapons", "7240.293945 237.813080 7029.533691", "-130.691055 -0.000000 -0.000000");
  33. SpawnObject("ExpansionSign_Trader_Attachments", "7239.104492 237.853302 7032.863770", "-90.000038 0.000000 -0.000000");
  34. SpawnObject("ExpansionSign_Trader_Clothing", "7240.227539 237.828583 7036.509277", "-45.000053 0.000000 0.000000");
  35. SpawnObject("ExpansionSign_Trader_Vehicles", "7243.856934 237.835800 7038.103516", "-9.000000 0.000000 0.000000");
  36. SpawnObject("ExpansionSign_Trader_Accessoires", "7243.508789 237.807877 7027.983887", "-174.044357 -0.000000 -0.000000");
  37.  
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement