FANDOM


behavior.SetWiggleAccuracy Edit

Function
void behavior.SetWiggleAccuracy(number accuracy)
Description
Set the wiggle accuracy. (Range 0.0 to 7.0)
V1 Function Name
Unimplemented V2 function

behavior.SetWiggleAccuracy is a function stub. It produces the message "Accuracies Not Implemented." in the scriptlog when accuracy is in the range 0 to 7, and produces an error otherwise..

Adjusting wiggle and shake accuracy in Foldit has been deprecated, and replaced by adjustable wiggle power.

Stub functions in the Foldit Lua interface support any recipes which query or set wiggle or shake accuracy. These stub functions have no effect on the game.

The following Lua code demonstrates the wiggle and shake accuracy stub functions:

print (  "wiggle accuracy = " .. behavior.GetWiggleAccuracy() )

print ( "setting wiggle accuracy to 4" )
behavior.SetWiggleAccuracy ( 4 )

print ( "shake accuracy = " ..  behavior.GetShakeAccuracy() )

print ( "setting shake accuracy to 4" )
behavior.SetShakeAccuracy ( 4 )

This code produces the following scriptlog output:

wiggle accuracy = 3
setting wiggle accuracy to 4
Accuracies Not Implemented.
shake accuracy = 2
setting shake accuracy to 4
Accuracies Not Implemented.
Community content is available under CC-BY-SA unless otherwise noted.