|
Found this in the FPS-Tutorial, in the DamageReceiver.js: Is
the same as:
? Or am I missing some siginficant detail here? Thanks & Greetz, Ky.
(comments are locked)
|
|
The two examples you gave would give identical results. However, if you placed a piece of code afterwards, with Invoke it will get executed immediately, whereas with the yield it will be delayed as well. For example, with this function, someOtherFunction will be called immediately, and DelayedDetonate will be called after detonationDelay seconds.
Whereas with this function, DelayedDetonate will be called after detonationDelay seconds, and someOtherFunction will be called right after DelayedDetonate.
Also, you cannot pass arguments using Invoke. You are correct: you can't pass arguments to Invoke.
Dec 07 '09 at 11:07 PM
Ehren
Thanks, very helpful, both of you =) HA! Can upvote now! ^^
Dec 09 '09 at 12:48 PM
SisterKy
(comments are locked)
|
