Dragoteryx

Results 5 comments of Dragoteryx

I know don't worry, I said it's a bad example. If you don't know for what reasons Promise are used in Javascript then of course this will seem useless. For...

I just thought of a more pratical use, so... Let's say you wrote a function called PlayerAvatar, that takes two arguments, a player and a callback function with one argument...

Now that you say it util.Promise does look better than promise.New Going to rename a few stuff.

Done. I renamed every function: promise.New => util.Promise promise.All => util.PromiseAll promise.First => util.PromiseFirst promise.Async => util.PromiseAsync Now that I think of it it might be better to rename util.PromiseAsync...

You're only setting the weapon's position when the nextbot picks up the weapon, wouldn't it be better to set it in the nextbot's serverside Think hook?