SetWorkbenchKeyword - ConstructibleObject: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
imported>Seigneur Voland
mNo edit summary
imported>Seigneur Voland
mNo edit summary
Line 8: Line 8:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function SetWorkbenchKeyword(String WBKeyword) native
Function SetWorkbenchKeyword(Keyword WBKeyword) native
</source>
</source>


Line 19: Line 19:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
String WorkbenchKeyword = "CraftingSmelter"
; Makes the Iron Cuirass craftable at the Smelter
RecipeArmorIronCuirass.SetWorkbenchKeyword(WorkbenchKeyword)
Keyword WBKeyword = CraftingSmelter
RecipeArmorIronCuirass.SetWorkbenchKeyword(WBKeyword)
RecipeArmorIronCuirass.SetWorkbenchKeyword(Keyword.GetKeyword("CraftingSmelter"))
RecipeArmorIronCuirass.SetWorkbenchKeyword(RecipeIngotIron.GetWorkbenchKeyword())
 
</source>
</source>


Navigation menu