Space Engineers

Space Engineers

评价数不足
WeaponCoreScript-Template
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
52.145 KB
2020 年 8 月 14 日 上午 11:45
2022 年 8 月 3 日 上午 5:02
5 项改动说明 ( 查看 )

订阅以下载
WeaponCoreScript-Template

在 Sigmund Froid 的 2 个合集中
WeaponCore Ingame Scripts
13 件物品
Mods I use for my current builds
19 件物品
描述
This is a template for Ingame scripts. Other authors may use this as base to learn how to script with WeaponCore's PB API.

What this does
On run this will fire all WeaponCore static launchers on the grid.
What did you expect this is just a template?

I'm sorry that the script didn't work until now, I only used it for the API so I never actually checked if it works

Bugs And Issues?
=======================
Leave a comment below.

Want to learn how to use the WeaponCore PB API?
Check this out: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2178802013

My Workshop

Support Darkstar (Patreon)[www.patreon.com]

I have a github now:
https://github.com/SilicDev/WeaponCoreScripts
18 条留言
BAKADAKALAKA556 2023 年 9 月 24 日 上午 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 2023 年 6 月 9 日 上午 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://psteamcommunity.yuanyoumao.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  [作者] 2023 年 1 月 7 日 下午 3: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. 2023 年 1 月 7 日 上午 11:37 
can you make homming missiles autofire on targets without manualy locking on them from the cockpit ?
Rhubarb Bikini 2022 年 8 月 3 日 上午 7:00 
You can delete our convo if you wish.
Rhubarb Bikini 2022 年 8 月 3 日 上午 6:59 
Just tested and worked fine. Thank you so much :)
Sigmund Froid  [作者] 2022 年 8 月 3 日 上午 5:03 
Seems like I forgot to implement an API change from earlier. It should work now.
Sigmund Froid  [作者] 2022 年 8 月 3 日 上午 4:55 
Yeah I'll go check if something broke
Rhubarb Bikini 2022 年 8 月 3 日 上午 4:53 
i had a helm - didnt work. i removed, didnt work, added a"cockpit" still doesnt work
Rhubarb Bikini 2022 年 8 月 3 日 上午 4:52 
still failed with no cockpits - thanks for your help so far.