Garry's Mod

Garry's Mod

SCP Inventory Keycard Version
Load Keycards on Server Startup?
How do I do the title.
最後修改者:General John Daniel Caine; 2018 年 4 月 20 日 下午 8:32
< >
目前顯示第 1-3 則留言,共 3
Xenikay  [開發人員] 2018 年 4 月 28 日 下午 2:50 
You have to know lua.
Find a spawn function and use :

ply:CreateSCPInventory() -- To create the inventory of the player

ply:SCP_Inventory_GiveLoadout( "ent_fak", "ent_hazmat_suit", "card_lvl_4" ) -- Insert all entity you want to give , write the class name
General John Daniel Caine 2018 年 4 月 28 日 下午 3:52 
引用自 Xenikay
You have to know lua.
Find a spawn function and use :

ply:CreateSCPInventory() -- To create the inventory of the player

ply:SCP_Inventory_GiveLoadout( "ent_fak", "ent_hazmat_suit", "card_lvl_4" ) -- Insert all entity you want to give , write the class name


I've done that; I mean how do I load all the keycard levels on buttons, doors, etc. without having to execute SCPLoadKeycardLevel each time
JustLeon 2020 年 9 月 13 日 上午 5:08 
引用自 Xenikay
You have to know lua.
Find a spawn function and use :

ply:CreateSCPInventory() -- To create the inventory of the player

ply:SCP_Inventory_GiveLoadout( "ent_fak", "ent_hazmat_suit", "card_lvl_4" ) -- Insert all entity you want to give , write the class name


I've done that; I mean how do I load all the keycard levels on buttons, doors, etc. without having to execute SCPLoadKeycardLevel each time

You could try to put the Command in the Autoexe of Gmod. You can find it in the datapath of Gmod. Then when you have done that the Command automatically executes when you start up the game. You can find Autoexec.cfg in Steam/steamapps/common/GarrysMod/garrysmod/cfg
< >
目前顯示第 1-3 則留言,共 3
每頁顯示: 1530 50