User:ArthurAutomaton/sandbox: Difference between revisions
Jump to navigation
Jump to search
(groundwork for a page listing unofficial dota 2 modding tools) |
|||
Line 20: | Line 20: | ||
* [[Dota 2 Workshop Tools/Scripting/Built-In Unit Names|Built-In Unit Names]] | * [[Dota 2 Workshop Tools/Scripting/Built-In Unit Names|Built-In Unit Names]] | ||
= | = Unofficial Dota 2 Modding Tools = | ||
== KeyValue files == | |||
* [https://github.com/cris9696/DotaCustomFilesJoiner DotaCustomFilesJoiner] | |||
* [https://github.com/TischelDota/KVFilesBuilder KVFilesBuilder] | |||
* [https://github.com/bhargavrpatel/dota_kv Syntax highlighting and snippets for Sublime Text 2/3] | |||
=== | == API == | ||
* [https://github.com/bhargavrpatel/Dota-2-Sublime-Packages API snippets for Sublime Text 2/3] | |||
* [http://www.reddit.com/r/Dota2Modding/comments/2d8t09/dota2_lua_api_stub_classes/ Lua API stub classes] | |||
Revision as of 03:44, 20 August 2014
Sandbox
Some notes to myself about modding DotA 2.
Creating a unit that's controllable by a specific player
This code creates a mud golem at (0, 0, 0) on the Radiant team and makes it controllable by player 0:
unit_team = DOTA_TEAM_GOODGUYS unit_name = "npc_dota_neutral_mud_golem" player = PlayerResource:GetPlayer(0) point = Vector(0, 0, 0) unit = CreateUnitByName(unit_name, point, true, nil, nil, unit_team) unit:SetControllableByPlayer(player:GetPlayerID(), true)
Relevant links: