Frictional Games Forum (read-only)
Speeds in scripts? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Speeds in scripts? (/thread-14266.html)



Speeds in scripts? - Xanthos - 03-26-2012

Thanks for reading,
I have been scripting for a while now and I have always been so confused at certain scripts that use speed timers.
It will be like this
"5.0f"
or
"5"
SetPlayerActive(false);
StartPlayerLookAt("mansion_4", 0.5f, 0.5f, "");

In this script I'm expecting your person to turn really fast.
But when I test your person turns in like 5 seconds?
even 1.0f is faster.

Basically I'm trying to ask which is faster.
-The low numbers like (0.1f)
or
-The larger numbers like (10.0f)

I give +1rep for the helper.


RE: Speeds in scripts? - Your Computer - 03-26-2012

It deals with mutipliers, therefore the higher the number, the faster the result. Whenever you see "mul" in a variable name, you know it's a multiplier.


RE: Speeds in scripts? - Xanthos - 03-26-2012

(03-26-2012, 09:04 PM)Your Computer Wrote: It deals with mutipliers, therefore the higher the number, the faster the result. Whenever you see "mul" in a variable name, you know it's a multiplier.
Thanks, once again.
You have helped me on every problem I have had Big Grin