ARMousePickEntity
From Blue Mars Developer Guidebook
There are security restrictions on this article
|
|
This is an Avatar Reality Utilities function.
Function
- ARMousePickEntity()
- check if the mouse position is over an entity
- return value - the entity, if any
Code
This function calls ARMousePick with arguments appropriate for detecting intersections with entities. Returns first entity in the results table, if any.
function ARMousePickEntity()
local count = ARMousePick(ent_independent+ent_static+ent_rigid,rwi_stop_at_pierceable+rwi_colltype_any,1);
if (count>0) then
return g_HitTable[1].entity;
end
end

