TheMyrco
|
  |
| Joined: 13 Aug 2011 |
| Total Posts: 15105 |
|
|
| 25 Jul 2012 04:26 AM |
A new pcall is out, this time it can hold yields: http://wiki.roblox.com/index.php/Function_Dump/Roblox_Specific_Functions#ypcall |
|
|
| Report Abuse |
|
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 25 Jul 2012 04:55 AM |
| Well maybe it's old to YOU, but I've never seen it before, not even on Lua's website. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 04:58 AM |
| I've never seen it either. Is it implemented in RBX.Lua? |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 25 Jul 2012 04:59 AM |
Yep, judging by the link:
"Roblox_Specific_Functions" |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 05:31 AM |
Of course that you've never seen it on the Lua website.
As for us not finding out about it earlier, that was just because we had never discovered it. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 25 Jul 2012 05:34 AM |
Yeah, I only realised the link at my 2nd post here.
I'm so mad I didn't find out about ypcall() first...I could have used it instead of coroutines for my script builder's command bar thingy
dang |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 07:02 AM |
| Does anyone actually even use that function? |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
8SunTzu8
|
  |
| Joined: 30 Sep 2011 |
| Total Posts: 8199 |
|
|
| 25 Jul 2012 09:11 AM |
I think legend just added it to the wiki though.
"Improvise, Overcome, and Adapt." -Captain (RIP) |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 25 Jul 2012 10:19 AM |
| cOLD mOLD I've been using this method for a while |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 25 Jul 2012 11:04 AM |
function foo() print("Hai") wait(1) print("Bai") end print(ypcall(foo)) print( pcall(foo))
You are dead to me.
~Sir, I am sorry for your loss of brain cells~ |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 25 Jul 2012 11:25 AM |
@Seranok,
How about if you find something new that's not on the wiki you TELL SOMEONE? |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 25 Jul 2012 12:26 PM |
| I PMed one of the Wiki helpers yesterday telling him to put ypcall up on the wiki |
|
|
| Report Abuse |
|
|
Legend26
|
  |
| Joined: 08 Sep 2008 |
| Total Posts: 10586 |
|
|
| 25 Jul 2012 12:35 PM |
| It's been on the wiki since... July 21... |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 25 Jul 2012 12:37 PM |
^ I haven't got my burger yet.
~We are farmers, bum bum bum bum bum bum bum!~ |
|
|
| Report Abuse |
|
|
aboy5643
|
  |
| Joined: 08 Oct 2010 |
| Total Posts: 5458 |
|
|
| 25 Jul 2012 12:40 PM |
| I still don't approve of Seranok :) |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 25 Jul 2012 12:59 PM |
| okay maybe it was before yesterday that I PMed him. i lose track of days in the summer. but he wasn't he one who added ypcall to the wiki |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 25 Jul 2012 01:54 PM |
"but he wasn't he one who added ypcall to the wiki"
Actually, yes he was. Maybe you should try checking the history next time. |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 25 Jul 2012 02:14 PM |
| It's not old at all, in fact it was only added about 2 months ago. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 02:22 PM |
ypcall(wait, 0)
And I lol'd |
|
|
| Report Abuse |
|
|