AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting a trace to hit a non solid entity (https://forums.alliedmods.net/showthread.php?t=216171)

vip-colgate 05-17-2013 13:40

Getting a trace to hit a non solid entity
 
Hey, I've a question about trace.
As is in the title, Is it possiable to make a TraceLine and getting the trace to hit a non solid entity?
I'm curious to know that, :s

Can any pros answer me?
Thanks.

.Dare Devil. 05-17-2013 15:11

Re: Getting a trace to hit a non solid entity
 
Normally traceline wont catch non solid entity but if you make entity solid and skip one frame then do traceline, again skip one frame and make entity non solid again.
That is the only way i know.

ConnorMcLeod 05-17-2013 16:48

Re: Getting a trace to hit a non solid entity
 
You don't need to skip a frame, just send SetOrigin or SetSize with its current origin or size and that entity gonna be linked to the world.

So :

set solid
set again origin
do trace
set unsolid
set again origin to prevent any touch thing.


All times are GMT -4. The time now is 16:22.

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