Raised This Month: $32 Target: $400
 8% 

Detect entity toutch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Contf
Junior Member
Join Date: Jun 2013
Old 09-22-2016 , 19:44   Detect entity toutch
Reply With Quote #1

Hi,
i am wondering if it's possible to detect if a entity (he grenade projectile) enter or toutch a trigger_multiple entity.

I appreciate any help.
Thanks.
Contf is offline
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 09-22-2016 , 20:08   Re: Detect entity toutch
Reply With Quote #2

You can use SDKHook_StartTouch (other hooks https://sm.alliedmods.net/new-api/sdkhooks/SDKHookType)
Kolapsicle is offline
Contf
Junior Member
Join Date: Jun 2013
Old 09-22-2016 , 20:11   Re: Detect entity toutch
Reply With Quote #3

It doesn't fire anything when he granade projecttile toutch the entity.

Last edited by Contf; 09-22-2016 at 20:12.
Contf is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 09-22-2016 , 20:16   Re: Detect entity toutch
Reply With Quote #4

Post some code then ;v
fakuivan is offline
Contf
Junior Member
Join Date: Jun 2013
Old 09-22-2016 , 23:08   Re: Detect entity toutch
Reply With Quote #5

I have this entity (zone by devzones):

Spoiler


and i want to detect when this entity (ball) toutch the zone

Spoiler


I am not really shure if this is the right way
Contf is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 09-23-2016 , 01:04   Re: Detect entity toutch
Reply With Quote #6

You might need to play with collision flags on the grenade or input flags on the trigger
__________________
Neuro Toxin is offline
Contf
Junior Member
Join Date: Jun 2013
Old 09-23-2016 , 11:49   Re: Detect entity toutch
Reply With Quote #7

Thanks very mutch, i figured out.
Contf is offline
Reply



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 01:06.


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