[Solved]Line
I read about Trace line but I still can't figure it out.
I want to know how to make Traceline from one origin to other.And if it triggers any player some function would be called |
Re: Line
Searching is always an option:
http://forums.alliedmods.net/showpos...30&postcount=6 https://forums.alliedmods.net/showthread.php?t=66076 U can use this to experiment with traceline: https://forums.alliedmods.net/showthread.php?t=103851 |
Re: Line
I already searched, if hadn't searched i wouldn't asked for help
|
Re: Line
Quote:
|
Re: Line
No, I already saw these threads.
|
Re: Line
See funcwiki on trace_line() and get it's return, that should be assigned to an entity if it hit any, check if that entity is a player and trigger your function...
Code:
new ent = trace_line( ... ) // I don't remember the params |
Re: Line
Do I need a FM forward that checks is some one triggered it?
|
Re: Line
No, there isnt any need of such forward, you can just do a traceline, and if it hits a player, then trigger your function.
|
Re: Line
I'm messed :shock:
|
Re: Line
If you can't understand a simple function call then I can't help you, I already gave you an example.
|
| All times are GMT -4. The time now is 03:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.