AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   flashbang touch (https://forums.alliedmods.net/showthread.php?t=174147)

Menethil 12-16-2011 05:23

flashbang touch
 
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

Devil259 12-16-2011 06:01

Re: flashbang touch
 
register_touch( "weapon_flashbang" , otherentity? , "function" )

?

Menethil 12-16-2011 07:26

Re: flashbang touch
 
and to remove the flashbang when it touch ? remove_entity(weapon_flashbang) ?
:)
and ty ^_^

Hunter-Digital 12-17-2011 22:39

Re: flashbang touch
 
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.


All times are GMT -4. The time now is 11:48.

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