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
SetPlayerActive(false) Help!
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#6
RE: SetPlayerActive(false) Help!

(06-09-2012, 12:43 PM)P44RTHURN4X Wrote: No, he have to type 10.0f, cause the "f" is important, otherwise the cpu cant read the time and the timer start automatically in 1 second after other scripts! And the names, you said it's just for Remove... it's not! These are the internal names which you need in every script in .hps files! .hps are just working with void, bool and float and this 3 kind of scripting are just working with your own internal names. the other name, for the callback, can be all things like "1" or "a". But if you do other callback funcs you need another cbname like "12" or "ab" or only "2" or "b".

Doubles can be safely converted to floats if the double does not surpass 32-bit. Ints can likewise be safely converted to floats or doubles. The only reason why you would need to put an f at the end of the decimal value for float arguments is if you're overly concerned about performance or syntax.

As for timer names, they are not required; an empty string will do, unless you plan on using the timer names--which is good practice to use them, lest you create hundreds of timer callbacks.

Tutorials: From Noob to Pro
06-09-2012, 10:06 PM
Website Find


Messages In This Thread
SetPlayerActive(false) Help! - by MaZiCUT - 06-08-2012, 04:29 PM
RE: SetPlayerActive(false) Help! - by P44RTHURN4X - 06-08-2012, 04:45 PM
RE: SetPlayerActive(false) Help! - by MaZiCUT - 06-08-2012, 04:56 PM
RE: SetPlayerActive(false) Help! - by P44RTHURN4X - 06-09-2012, 12:43 PM
RE: SetPlayerActive(false) Help! - by Your Computer - 06-09-2012, 10:06 PM



Users browsing this thread: 4 Guest(s)