Knuckle Cracker

Knuckle Cracker => Support => Topic started by: warren on February 28, 2015, 05:11:13 PM

Title: moveSpeed locked to integer when accessing through CRPL
Post by: warren on February 28, 2015, 05:11:13 PM
      <-unit 0 "moveSpeed" .5 SetScriptVar
The above does not work as expected for dynamically generated runner's nests.
Title: Re: moveSpeed locked to integer when accessing through CRPL
Post by: knucracker on February 28, 2015, 07:43:43 PM
Check to see how moveSpeed is initially declared (if at all) in the script you are setting it in.
$moveSpeed:1
and
$moveSpeed:1.0

Will declare one as an integer type and the other as a float type.
Title: Re: moveSpeed locked to integer when accessing through CRPL
Post by: warren on February 28, 2015, 07:54:13 PM
It is in pixels per frame, not per second as it states in the reference as far as I can tell. Setting the same setting manually allows you to specify a fractional number.
Title: Re: moveSpeed locked to integer when accessing through CRPL
Post by: Lost in Nowhere on February 28, 2015, 08:01:06 PM
I'd guess that it's like emitters, spore towers, &c where the number you have to set it to is 1,000,000 (might be a different number) times the value it shows in the editor dialogue, although I could very well be completely incorrect.
Title: Re: moveSpeed locked to integer when accessing through CRPL
Post by: warren on February 28, 2015, 10:24:18 PM
I already tested that particular hypothesis. The number you give to runners nests is the same as the number that appears in the nest settings menu. Provided it is an integer.