Dota 2
评价数不足
Dota 2 But Sudo
   
奖励
收藏
已收藏
取消收藏
Custom Games and Bot Scripts: Custom Game
文件大小
发表于
更新日期
1.188 MB
2024 年 10 月 3 日 下午 12:53
2024 年 10 月 3 日 下午 1:17
1 项改动说明 ( 查看 )

订阅以下载
Dota 2 But Sudo

描述
Warning! this is a mode you should only play with people you trust, like and can work with.
This is sandbox, all players have have practically infinite power in terms of what they can do here. DO NOT PLAY THIS MODE UNLESS YOU KNOW WHO YOU ARE PLAYING WITH.

how it works:
when player types in all chat: `sudo ` followed Lua script, it is executed.

Here are some examples to get you started.
to spawn roshan at middle of the map:
sudo CreateUnitByName("npc_dota_roshan",Vector(0,0,0),true,nil,nil,DOTA_TEAM_NEUTRALS)

to force creeps to spawn:
sudo GameRules:SpawnAndReleaseCreeps()

to spawn bots:
sudo GameRules:BotPopulate()

to make bots think:
sudo GameRules:GetGameModeEntity():SetBotThinkingEnabled(true)