Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
C_ScriptBind_Sharpening Methods

The methods of the C_ScriptBind_Sharpening class are listed here.

 
Name 
Description 
 
Syntax: Sharpening.DoStepOnGrindstone()
Perform single step on grindstone, use SetWheelSpeed() for constant speed and automatic pedalling.
 
 
Syntax: Sharpening.GetTotalQuality()
Get current health of the weapon. Range <0,1>. 1 is best.
 
 
Syntax: Sharpening.GetWheelSpeed()
Returns current wheel speed of the grindstone on which is sharpening performed. Range <0,1>.
 
 
Syntax: Sharpening.IsActive)
Returns sharpening state. True after StartSharpening and false after StopSharpening.
 
 
Syntax: Sharpening.MoveToWorstZone()
Moves to worst sharpened zone or stay on same position, if weapon is sharpened evenly.
 
 
Syntax: Sharpening.OpenInventory(EntityId user, EntityId grindstone)
Opens inventory for selecting weapon for sharpening.
 
 
Syntax: Sharpening.SetGrindstone(EntityId entityId)
Sets which grindstone will be used for sharpening.
 
 
Syntax: Sharpening.SetOptimalRotation()
Sets optimal rotation on which weapon is sharpened correctly.
 
 
Syntax: Sharpening.SetPosition(float value)
Weapon will slowly move to desired position.
 
 
Syntax: Sharpening.SetPressure(float value)
Set sharpening pressure, more pressure requires more energy but increases sharpening efficiency.
 
 
Syntax: Sharpening.SetRotation(float value)
Weapon will slowly move to desired rotation, use SetOptimalRotation() to sharpen weapon correctly
 
 
Syntax: Sharpening.SetWheelSpeed(float value)
Sets speed of grindstone wheel on which is sharpening performed.
 
 
Syntax: Sharpening.Start(EntityId grindstoneId, int itemId)
Starts sharpening weapon with selected inventory item on selected grindstone.
 
 
Stop 
Syntax: Sharpening.Stop()
Stops sharpening, reseting state of the grindstone and setting new health to the weapon according to the results of sharpening.
 
Copyright (c) 2012. All rights reserved.