Ulysses Stuff > Suggestions

Random gravity?

<< < (3/6) > >>

krooks:
If I could rate posts, I'd rate yours "winner"   ;D

Aaron113:
I forgots about it.  I'll start now.

Aaron113:
It isn't done, but is this something like what you guys had in mind?

--- Code: --------------------------------- Grav ------------------------------
function ulx.grav( calling_ply, gravity, seconds )
for k,v in pairs( player.GetAll() ) do
v:SetGravity( gravity )
end
timer.Simple( seconds, function()
for k,v in pairs( player.GetAll() ) do
v:SetGravity( 1 )
end
end )
ulx.fancyLogAdmin( calling_ply, "#A set gravity to #i for #i seconds", gravity, seconds )
end
local grav = ulx.command( CATEGORY_NAME, "ulx grav", ulx.grav, "!grav" )
grav:addParam{ type=ULib.cmds.NumArg }
grav:addParam{ type=ULib.cmds.NumArg }
grav:defaultAccess( ULib.ACCESS_ADMIN )
grav:help( "Randomizes gravity for everyone." )
--- End code ---

JamminR:

--- Quote from: Aaron113 on December 11, 2011, 08:11:11 PM ---Sounds easy enough.  I could probably get it done in less than an hour.  I'll see what I can do tomorrow.

--- End quote ---

--- Quote from: Aaron113 on December 13, 2011, 02:46:31 PM ---I forgots about it.  I'll start now.

--- End quote ---

Sheesh man...whatever you do...don't blink.
SQUIRREL!

re: Code sample.
Yeah, lookin along the right lines.
Add the default vars/randomization ideas..throw in cmds.PlayersArg...etc etc.

MrPres...still got plans for you man...just may be a while. Not found time to research.

Aaron113:
Sounds easy enough.  I'll get her done tomorrow some time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version