Raised This Month: $ Target: $400
 0% 

flashbang touch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Menethil
Senior Member
Join Date: Aug 2011
Old 12-16-2011 , 05:23   flashbang touch
Reply With Quote #1

I dont know how to register_touch(flashbang // //)

I need to do something when flashbang touch a player or another entity .
If touch the player do something , if touch something else (wall/crates/sky,etc) to disapair.

so how do i register touch for flashbang
Menethil is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-16-2011 , 06:01   Re: flashbang touch
Reply With Quote #2

register_touch( "weapon_flashbang" , otherentity? , "function" )

?
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Menethil
Senior Member
Join Date: Aug 2011
Old 12-16-2011 , 07:26   Re: flashbang touch
Reply With Quote #3

and to remove the flashbang when it touch ? remove_entity(weapon_flashbang) ?

and ty ^_^
Menethil is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 12-17-2011 , 22:39   Re: flashbang touch
Reply With Quote #4

The entity is named "grenade" and has a specific setting that distinguishes it from he, smoke or C4, I don't remember what that is but you'll surely find it by searching.
__________________
Hunter-Digital 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 11:48.


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