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분
< >
전체 댓글 3개 중 1~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
< >
전체 댓글 3개 중 1~3개 표시 중
페이지당 표시 개수: 1530 50