请选择 进入手机版 | 继续访问电脑版

星界边境中文论坛-StarboundForum

查看: 244|回复: 0

How to kill useless NPC

[复制链接]
  • TA的每日心情
    难过
    10 小时前
  • 签到天数: 894 天

    连续签到: 6 天

    [LV.10]物质枪

    224

    主题

    1402

    帖子

    5679

    积分

    封测会员

    【数据删除】

    Rank: 12Rank: 12Rank: 12

    积分
    5679

    突出贡献

    发表于 2017-6-2 21:31:14 | 显示全部楼层 |阅读模式
    http://community.playstarbound.com/threads/duplicate-crew.119293/page-8
    They haven't been made to disappear, unfortunately. Retroactively dealing with the effects of bugs would lead to a huge amount of code in the game dedicated to just cleaning up things from previous versions.

    What you can do to clear them out is cause them to have a script error. This can be done by going into single player and entering the following command while hovering your mouse over the NPC:


    Code:
    /entityeval self.behavior = "thisisastring"

    This will cause the NPC to die. Any duplicates will not respawn, but the originals will respawn after a few seconds.


    Here is a quicker solution for getting all the npcs at once. Same method as above, open chat window, hover over any NPC, and enter the following:


    Code:
    /entityeval world.entityQuery(entity.position(), 200, {includedTypes={"npc"}, callScript="error"})

    We Secure. We Contain. We Protect. And We Never Forget.
    我的心属于你,可你什么时候才能空出属于我的位置……能早一点么……
    也许,那时侯我就已经失去了最后的机会了吧
    0 0.5 0.7 i 2i -10 0.6 0.8 0.9 10i -10 -100/1 我的你,你的我
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    小黑屋|星界边境中文论坛-StarboundForum  

    GMT+8, 2017-8-20 19:47 , Processed in 0.115414 second(s), 29 queries .

    Powered by Discuz! X3.2

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表