Difference between revisions of "Fieldname"
From WolfWiki
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.) |
(lua-4 changes) |
||
Line 84: | Line 84: | ||
<tr bgcolor='white'><td align=left>s.weapon</td><td align=center>integer</td><td align=center>RO </td></tr> | <tr bgcolor='white'><td align=left>s.weapon</td><td align=center>integer</td><td align=center>RO </td></tr> | ||
<tr bgcolor='lightgrey'><td align=left>scriptName</td><td align=center>string</td><td align=center>RO </td></tr> | <tr bgcolor='lightgrey'><td align=left>scriptName</td><td align=center>string</td><td align=center>RO </td></tr> | ||
− | <tr bgcolor='white'><td align=left>sess.damage_given</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.damage_given</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.damage_received</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.damage_received</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='white'><td align=left>sess.deaths</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.deaths</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.game_points</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.game_points</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='white'><td align=left>sess.gibs</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.gibs</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.kills</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.kills</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='white'><td align=left>sess.muted</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.muted</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.referee</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.referee</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='white'><td align=left>sess.rounds</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.rounds</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.semiadmin</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.semiadmin</td><td align=center>integer</td><td align=center>RW</td></tr> |
− | <tr bgcolor='white'><td align=left>sess.spec_invite</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.spec_invite</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.spec_team</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.spec_team</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='white'><td align=left>sess.suicides</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.suicides</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.team_damage</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.team_damage</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='white'><td align=left>sess.team_kills</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='white'><td align=left>sess.team_kills</td><td align=center>integer</td><td align=center>RW </td></tr> |
− | <tr bgcolor='lightgrey'><td align=left>sess.team_received</td><td align=center>integer</td><td align=center> | + | <tr bgcolor='lightgrey'><td align=left>sess.team_received</td><td align=center>integer</td><td align=center>RW </td></tr> |
<tr bgcolor='white'><td align=left>spawnflags</td><td align=center>integer</td><td align=center>RO </td></tr> | <tr bgcolor='white'><td align=left>spawnflags</td><td align=center>integer</td><td align=center>RO </td></tr> | ||
<tr bgcolor='lightgrey'><td align=left>spawnitem</td><td align=center>string</td><td align=center>RO </td></tr> | <tr bgcolor='lightgrey'><td align=left>spawnitem</td><td align=center>string</td><td align=center>RO </td></tr> |
Revision as of 21:08, 16 November 2005
List of fields supported by et.gentity_get() and et.gentity_set()
|
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]