Hello, I want to create a tripwire type thing. Would it be possible to create an invisable entity between two points, and register a touch between it and a player?
I looked at the tripmine plugin and found a traceline. So lets say this:
Code:
public checkLine()
{
new origin[3] = { 50, 50, 50};
new origin2[3] = { 75, 75, 50};
//trace_line ( IgnoreEnt, Float:Start[3], Float:End[3], Float:vReturn[3] )
new id = trace_line ( -1, float(origin), float(origin2), /*what do I put here?*/ );
if(is_user_alive(id))
client_print(0,print_chat,"[AMXX] User has crossed into the line!");
set_task(0.1,checkLine);
}
Would that work in detecting a user crossing a line? And what is the vReturn?
__________________