Garry's Mod

Garry's Mod

Playable Piano
IAMWEASEL! 2014 年 9 月 6 日 下午 5:43
How to implent it into your server.
Go to your server -> garrys mod -> lua -> autorun -> server

add a lua file, you can copy the admin_functions.lua file and remove all the code inside.

Rename the admin_functions.lua to whatever name you want, mine is piano.lua.

Open it with notepad ++ and add these lines of code:

function SpawnEntity() local ent = ents.Create("gmt_instrument_piano") ent:SetPos( Vector( -20.000000, -380.070343, -0.500000) ) ent:SetAngles( Angle(0, 0, 0) ) ent:Spawn() ent:SetMoveType(MOVETYPE_NONE) end hook.Add( "InitPostEntity", "SpawnEntity", SpawnEntity)

Now save the .lua and have fun with your playable piano!
最后由 IAMWEASEL! 编辑于; 2014 年 9 月 6 日 下午 5:44
< >
正在显示第 1 - 4 条,共 4 条留言
U.F.O. 2014 年 12 月 15 日 上午 10:25 
you know how restricting to proper level in ULX?
引用自 U.F.O.
you know how restricting to proper level in ULX?
Hostia si es UFO que casualidad!
Siegesfriedler 2016 年 10 月 22 日 下午 3:23 
How can i find out Coordinates?
little blorby 2017 年 2 月 3 日 上午 11:36 
To get the coordinates go to the location where you want to place the piano, open the console and type GetPos it will print the postition coordinates into the console.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50