Wrongname Posted February 26, 2017 Share Posted February 26, 2017 I can spawn turrets with command /run Player(%playername%):getInventory():add(InventoryTurret(GenerateTurretTemplate(Seed(239), 6, dps, 49, Rarity(RarityType.Exotic), Material(MaterialType.Avorion)))) by changing Seed and dps you get different types of turrets but Is there a possibility to spawn turrets with specified parameters? Link to comment Share on other sites More sharing options...
illegalos Posted February 27, 2017 Share Posted February 27, 2017 I tried poking around. Normal: local item = GenerateTurretTemplate(random():createSeed(), weapontype, dps, tech, rarity, material) I want independent targeting: local item = GenerateTurretTemplate(random():createSeed(), weapontype, dps, tech, rarity, material) item.automatic = true I want independent targeting and guided for rocket launcher: local item = GenerateTurretTemplate(random():createSeed(), weapontype, dps, tech, rarity, material) item.automatic = true local weapons = {item:getWeapons()} item:clearWeapons() for _, weapon in pairs(weapons) do weapon["seeker"] = true item:addWeapon(weapon) end Probably need to be in a script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now