Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Getting list of properties of an object

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials
View previous topic :: View next topic  
Author Message
predprey
Master Cheater
Reputation: 15

Joined: 08 Oct 2015
Posts: 370

PostPosted: Sat May 21, 2016 1:33 am    Post subject: Getting list of properties of an object Reply with quote

If you want to find out the properties of an object that you can modify.

Method 1:
Code:
local pl = getPropertyList(class)
for i=0,pl.count-1 do
    print(pl[i])
end
pl.destroy()


Method 2:
Code:
for n in pairs(getmetatable(class)) do print(n) end
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 148

Joined: 07 Nov 2008
Posts: 4187
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat May 21, 2016 5:10 am    Post subject: Re: Getting list of properties of an object Reply with quote

Code:
local pl = getPropertyList(class)
print(pl.Text)
pl.destroy()

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials -> LUA Tutorials All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites