Code:
register_event("StatusValue", "_StatusValue", "be", "1=2", "2!0");
public _StatusValue(targeter) {
new target = read_data(2);
new solid = pev(target, pev_solid); //detect solid
/*pev_solid returns the following:
SOLID_NOT 0 // No interaction with other objects
SOLID_TRIGGER 1 // Touch on edge, but not blocking
SOLID_BBOX 2 // Touch on edge, block
SOLID_SLIDEBOX 3 // Touch on edge, but not an onground
SOLID_BSP 4 // BSP clip, touch on edge, block
*/
if(solid == SOLID_TRIGGER) {
//then they solid,
}
return PLUGIN_CONTINUE;
}
__________________