Garry's Mod

Garry's Mod

Playable Piano
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!
Naposledy upravil IAMWEASEL!; 6. zář. 2014 v 17.44
< >
Zobrazuje se 14 z 4 komentářů
you know how restricting to proper level in ULX?
U.F.O. původně napsal:
you know how restricting to proper level in ULX?
Hostia si es UFO que casualidad!
How can i find out Coordinates?
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.
< >
Zobrazuje se 14 z 4 komentářů
Na stránku: 1530 50