Space Engineers
WeaponCoreScript-Template
Коментарів: 18
BAKADAKALAKA556 24 верес. 2023 о 4:11 
i'm building an S-300 trailer. is there a script that can get the vertical launchers to fire on a detected target from the AI? no user interaction just grid AI identify the target and launchers sequence fire
Devlah 9 черв. 2023 о 8:01 
So there's this little pet project I am working on, perhaps you could provide some insight?
There's this Modpack "Star Trek Mod Pack 5.1" (https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=2634862322)
that includes a set of weapons designated as "Fleet Support".
They sort of behave like fixed weapons that spawn in entities when fired. They use Weaponcore for targeting, but will not acquire targets on their own like a turret would, requiring a user to manually designate a target via the UI.
As I'd like to setup these fleet support weapons as automated defense options for a shipyard, I'm trying to figure out a way to designate a target for these automously.
Firing is easy. A long range proximity sensor with the "Shoot on" setting can do that, but designating a target seems to be the challenge. Without a target, they do nothing.
Any help would be greatly appreciated.
Sigmund Froid  [автор] 7 січ. 2023 о 15:28 
@Daniel. For some weapons the Autofire Script in the collection above might work... If it doesn't, I'm currently investigating an issue with that Script regarding homing weapons
Daniel. 7 січ. 2023 о 11:37 
can you make homming missiles autofire on targets without manualy locking on them from the cockpit ?
Rhubarb Bikini 3 серп. 2022 о 7:00 
You can delete our convo if you wish.
Rhubarb Bikini 3 серп. 2022 о 6:59 
Just tested and worked fine. Thank you so much :)
Sigmund Froid  [автор] 3 серп. 2022 о 5:03 
Seems like I forgot to implement an API change from earlier. It should work now.
Sigmund Froid  [автор] 3 серп. 2022 о 4:55 
Yeah I'll go check if something broke
Rhubarb Bikini 3 серп. 2022 о 4:53 
i had a helm - didnt work. i removed, didnt work, added a"cockpit" still doesnt work
Rhubarb Bikini 3 серп. 2022 о 4:52 
still failed with no cockpits - thanks for your help so far.
Sigmund Froid  [автор] 3 серп. 2022 о 4:51 
Yes, that's why WeaponCore needs one
Rhubarb Bikini 3 серп. 2022 о 4:51 
yes. I will try without cockpit. A ship will always have cockpits though!
Rhubarb Bikini 3 серп. 2022 о 4:45 
catch (Exception e)
Sigmund Froid  [автор] 3 серп. 2022 о 4:45 
Do you already have a cockpit on the grid?
Rhubarb Bikini 3 серп. 2022 о 4:43 
I have the weapons core installed. I know because the arxy weapons all work nicely. I pasted the script into a PB, and pasted this script. Fixed the e error, added "exception e", but I get "WeaponCore API is failing" - what do I need to do? Thanks
Sigmund Froid  [автор] 29 жовт. 2021 о 0:52 
In theory yes , it might even already work when using Whips Radar and the addon fo it that I made, though I haven't done any testing on that so far.
The Caveman 28 жовт. 2021 о 18:47 
Is there a way to get Whips WHAM and LAMP script to function on Weapon Core turrets?
Sigmund Froid  [автор] 11 жовт. 2020 о 2:32 
PSA: DarkStar updated the API and broke the GetWeaponTarget and GetAIFocus functions; they have been updated to use MyDetectedEntityInfo, changes are already included in the guide.