Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Speeds in scripts?
Author Message
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #1
Speeds in scripts?
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.

(This post was last modified: 03-26-2012 09:20 PM by Xanthos.)
03-26-2012 08:41 PM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,237
Joined: Jul 2011
Reputation: 216
Post: #2
RE: Speeds in scripts?
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.

Tutorials: From Noob to Pro
(This post was last modified: 03-26-2012 09:04 PM by Your Computer.)
03-26-2012 09:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Xanthos Offline
Senior Member

Posts: 322
Joined: Mar 2012
Reputation: 8
Post: #3
RE: Speeds in scripts?
(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

03-26-2012 09:19 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)