yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 09 Aug 2011 06:13 AM |
im making a new function library to train my scripting, have any idea for useful functions? but give me something that will help, not a makecarwith2lolhats()
|
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
| |
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
| |
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 09 Aug 2011 07:28 AM |
What would the point of a function library? No game would ever use every single one of them, and you cna jsut write them into games you make as you need them.
Just try to make a game using functions. |
|
|
| Report Abuse |
|
|
richjoel
|
  |
| Joined: 14 Mar 2010 |
| Total Posts: 273 |
|
|
| 09 Aug 2011 07:33 AM |
function round(number, nearest)
Number would be the number you're rounding, nearest would be to like, the nearest 100 or the nearest 1.
Examples round(17, 100) >0
round(3.141592653548, 0.01) >3.14 |
|
|
| Report Abuse |
|
|
richjoel
|
  |
| Joined: 14 Mar 2010 |
| Total Posts: 273 |
|
|
| 09 Aug 2011 07:38 AM |
A true random number generator? The ROBLOX one's useless. Once it has a number, it seems to like to stick to it for quite a while >_>
for i = 1, 100 do print(math.random(1, 10))
> 1 8 1 1 1 7 1 10 1 2 |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 09 Aug 2011 08:36 AM |
| i made a superrandom function that changes the seed of random and gives really random numbers all the time, check my newest model |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
| |
|
zazw3
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1238 |
|
|
| 09 Aug 2011 09:49 AM |
| I have a whole one note page full of ideas from ages ago and aother page of the out come and notes on how i was gonna make them... |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 09 Aug 2011 09:55 AM |
| i really need ideas so tell everything that comes to your mind |
|
|
| Report Abuse |
|
|
zazw3
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1238 |
|
|
| 09 Aug 2011 09:55 AM |
| Yor looking to make a load of functions right? |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 09 Aug 2011 09:57 AM |
| yes, but only ones that are realy needed |
|
|
| Report Abuse |
|
|
zazw3
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1238 |
|
|
| 09 Aug 2011 10:00 AM |
ur gonna paste them at the top of every script u use?
if soo...
you might wanna try making a function that is like #include in C's oooor require() in something else (i think php) so you dont have to paste them all at the begining of the script you just have to do that one function and use that to call al the otehr ones....No idea if its possible...Is the source property in scripts unlocked now? |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 09 Aug 2011 10:02 AM |
| im actully using a special script that you need to had 1 line of code at the start of the script and it will work |
|
|
| Report Abuse |
|
|
zazw3
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1238 |
|
|
| 09 Aug 2011 10:16 AM |
| basicly what i was saying but minus the parrt where you make it... |
|
|
| Report Abuse |
|
|
yoyoman2
|
  |
| Joined: 07 Mar 2009 |
| Total Posts: 2170 |
|
|
| 09 Aug 2011 10:17 AM |
| you can find it in my models its my newest model and its called YoYo Lib |
|
|
| Report Abuse |
|
|