Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enemy waiting at each PathNodes
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Enemy waiting at each PathNodes

(02-09-2012, 05:36 AM)Obliviator27 Wrote: The engine reads those as exactly the same. The f is only used to tell the programmer that it's a float value, though the scripter should know based upon the general function.

The engine doesn't read them the same. Floats are not integers, and floats are not doubles. If you use decimal values but do not provide an f at the end of the number, the game will assume it is a double. If you use whole numbers, the game will assume it is an integer. Providing an f at the end of a decimal number implies less work for the engine since it doesn't have to implicitly convert the number to the proper type.

Tutorials: From Noob to Pro
02-09-2012, 06:08 AM
Website Find


Messages In This Thread
Enemy waiting at each PathNodes - by onv - 02-08-2012, 09:37 PM
RE: Enemy waiting at each PathNodes - by Your Computer - 02-09-2012, 06:08 AM
RE: Enemy waiting at each PathNodes - by palistov - 02-09-2012, 12:39 PM
RE: Enemy waiting at each PathNodes - by onv - 02-09-2012, 03:26 PM
RE: Enemy waiting at each PathNodes - by onv - 02-11-2012, 09:19 AM
RE: Enemy waiting at each PathNodes - by palistov - 02-11-2012, 09:31 AM
RE: Enemy waiting at each PathNodes - by onv - 02-11-2012, 10:06 AM
RE: Enemy waiting at each PathNodes - by palistov - 02-11-2012, 10:15 AM
RE: Enemy waiting at each PathNodes - by onv - 02-11-2012, 04:24 PM
RE: Enemy waiting at each PathNodes - by onv - 02-11-2012, 06:33 PM
RE: Enemy waiting at each PathNodes - by palistov - 02-11-2012, 07:45 PM
RE: Enemy waiting at each PathNodes - by onv - 02-12-2012, 09:05 AM



Users browsing this thread: 1 Guest(s)