Fieldname

From WolfWiki
Revision as of 13:45, 16 November 2005 by Rookie One (Talk | contribs) (Vec3_t is not an array of vectors, it is one. Rewrote the vec3_t explanation. And OMG! 2good you really need to work on your spelling.)

Jump to: navigation, search

List of fields supported by et.gentity_get() and et.gentity_set()

fieldtypeaccess
activatorentityRO
chainentityRW
classnamestringRW
closespeedfloatRW
countintegerRW
count2integerRW
damageintegerRW
deathTypeintegerRW
delayfloatRW
dl_attenintegerRW
dl_colorvec3RW
dl_shaderstringRO
dl_stylestringstringRO
durationfloatRW
end_sizeintegerRW
enemyentityRW
flagsintegerRO
harcfloatRW
healthintegerRW
inusebooleanRO
isPropbooleanRO
itemstringRW
keyintegerRW
messagestringRW
methodOfDeathintegerRW
mg42BaseEntintegerRW
missionLevelintegerRW
modelstringRO
model2stringRO
nextTrainentityRW
noise_indexintegerRW
originvec3RW
prevTrainentityRW
props_frame_stateintegerRO
r.absmaxvec3RO
r.absminvec3RO
r.bmodelbooleanRO
r.contentsintegerRW
r.currentAnglesvec3RW
r.currentOriginvec3RW
r.eventTimeintegerRW
r.linkcountintegerRO
r.linkedbooleanRO
r.maxsvec3RW
r.minsvec3RW
r.ownerNumintegerRW
r.singleClientintegerRW
r.svFlagsintegerRW
r.worldflagsintegerRO
radiusintegerRW
randomfloatRW
rotatevec3RW
s.anglesvec3RW
s.angles2vec3RW
s.apostrajectoryRW
s.clientNumintegerRW
s.constantLightintegerRW
s.densityintegerRW
s.dl_intensityintegerRW
s.dmgFlagsintegerRW
s.eFlagsintegerRW
s.effect1TimeintegerRW
s.effect2TimeintegerRW
s.effect3TimeintegerRW
s.frameintegerRW
s.groundEntityNumintegerRO
s.loopSoundintegerRW
s.modelindexintegerRW
s.modelindex2integerRW
s.numberintegerRO
s.onFireEndintegerRW
s.onFireStartintegerRW
s.postrajectoryRW
s.powerupsintegerRO
s.solidintegerRW
s.teamNumintegerRW
s.timeintegerRW
s.time2integerRW
s.weaponintegerRO
scriptNamestringRO
sess.damage_givenintegerRO
sess.damage_receivedintegerRO
sess.deathsintegerRO
sess.game_pointsintegerRO
sess.gibsintegerRO
sess.killsintegerRO
sess.mutedintegerRO
sess.refereeintegerRO
sess.roundsintegerRO
sess.semiadminintegerRO
sess.spec_inviteintegerRO
sess.spec_teamintegerRO
sess.suicidesintegerRO
sess.team_damageintegerRO
sess.team_killsintegerRO
sess.team_receivedintegerRO
spawnflagsintegerRO
spawnitemstringRO
speedfloatRW
splashDamageintegerRW
splashMethodOfDeathintegerRW
splashRadiusintegerRW
start_sizeintegerRW
tagNamestringRO
tagParententityRW
takedamagebooleanRW
tankLinkentityRW
targetstringRW
TargetAnglesvec3RW
TargetFlagintegerRO
targetnamestringRO
teamchainentityRW
teammasterentityRW
trackstringRO
varcfloatRW
waitfloatRW
waterlevelintegerRO
watertypeintegerRO

ET variable types:

vec3 : a vec3 is a 3-element array of numbers (C definition: typedef float vec3_t[3]; ). It is usually used to store and process coordinates in 3D space.
In etpro-lua a vector is a table containing 3 numbers. It can be accessed by doing:

tablevar = {}
tablevar = et.gentity_get() --a vec3 value
x = tablevar[1]
y = tablevar[2]
z = tablevar[3]