Raised This Month: $ Target: $400
 0% 

Creating an entity between two points


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 02-26-2006 , 17:25   Creating an entity between two points
Reply With Quote #1

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?
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode