people playing: 214
servers online: 75
games played: 73,141,331

  Toribash Community » Toribash » Mods » Lua scripts
Reply
 
Thread Tools Display Modes
Old Feb 19, 2013   #551
laboblox
Member
 
2nd Dan Black Belt
Join Date: Jun 2012
Posts: 70



where do i find these?
-----
nvm, found them

Last edited by laboblox; Feb 19, 2013 at 05:55 PM.. Reason: <24 hour edit/bump
laboblox is offline   Reply With Quote
Old Feb 19, 2013   #552
psycore
Member
 
2nd Dan Black Belt
Join Date: Feb 2010
Posts: 267



The attached script will print every global variable (including functions) to toribash/data/scripts/tables/_G.txt.

In addition it will create a similar file for every global table.

The entries will be sorted by type and name.

To use it you have to create the tables directory yourself, Lua can't do that.
Attached Files
File Type: lua getTableInfo.lua (1.9 KB, 4 views)
psycore is offline   Reply With Quote
Old Apr 11, 2013   #553
dainiusb
Junior Member
 
3rd Dan Black Belt
Join Date: Dec 2008
Posts: 21



Hello. Can someone explain me get_jont_pos2.lua?
I'm very new to lua. I want it to show only x value. How can I do this?
dainiusb is offline   Reply With Quote
Old Apr 11, 2013   #554
Yoyo
Raconteur
 
5th Dan Black Belt
Join Date: Nov 2009
Posts: 3,687
Clan: Tint



Code:
pos = get_joint_pos2(0,0)
echo("x = "..pos.x)
echo("y = "..pos.y)
echo("z = "..pos.z)
To get only the x value, you'd use pos.x (or whatever variable name you used).
!
<rooster12> I'm a brown belt, but still use nooby moves, like shoveling, any suggestions on how to stop?
<JSnuffMARS> where is the begging board?
<mineyo66> Does IRC use internet?
Yoyo is offline   Reply With Quote
Old Apr 11, 2013   #555
dainiusb
Junior Member
 
3rd Dan Black Belt
Join Date: Dec 2008
Posts: 21



Thanks!
Oh wow! Helped soo much. Many thanks!
dainiusb is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:29 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
ragdoll fighting game physics fighting game ragdoll fighting physics funmotion joints martial arts karate pc mac free game turn based game