Difference between revisions of "Category:Entity functions"
From Fortress Forever Wiki
Jump to navigationJump to searchm |
m |
||
Line 4: | Line 4: | ||
These Lua functions are common to all entities in FF Generally, any entity placed in the map should work with these. | These Lua functions are common to all entities in FF Generally, any entity placed in the map should work with these. | ||
− | + | *object = baseentity:'''new'''({''collection''}) creates a Lua object that corresponds to a map entity. You must call new() before you can access any entity through Lua. ''Collection'' is a table you can use to define any custom Lua variables you want. See [[Lua:info_ff_script#Example]] for example code. | |
*baseentity:'''Teleport'''(Vector neworigin, QAngle newangles, Vector newvelocity) | *baseentity:'''Teleport'''(Vector neworigin, QAngle newangles, Vector newvelocity) | ||
− | *''entity'' baseentity:'''GetOwner'''() | + | *''entity'' = baseentity:'''GetOwner'''() Returns the entity that "owns" the first entity. |
[[Category:Lua_Commands]] | [[Category:Lua_Commands]] | ||
{{Infobox manual/Footer}} | {{Infobox manual/Footer}} |
Revision as of 21:18, 25 June 2011
Entity FunctionsThese Lua functions are common to all entities in FF Generally, any entity placed in the map should work with these.
|
This category currently contains no pages or media.