Raised This Month: $ Target: $400
 0% 

fake_touch not triggering touch forwards


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mydas
Senior Member
Join Date: Mar 2005
Old 10-11-2023 , 05:27   fake_touch not triggering touch forwards
Reply With Quote #1

I'm registering a touch:
Code:
	register_touch( "*", "player", "fantastic_touch" )
Then, on keydown I'm simulating a touch from player to aimed-at entity:
Code:
if ( pev_valid( aimee ) )
	{
		fake_touch( aimee, id )	/* Simulate two entities colliding/touching. */
		draw_beam( id, aimee )
	}
But the registered touch doesn't get called. I want the fake_touch to trigger all other plugins on the server that do something when people are touching, for instance.
edit: The beam is getting drawn, so the entity is valid.
__________________
[2021] I would love to revive SHMOD.

My heroes: SLAYER, Akasha, Achilles, Robo-Ky,Justice, Potemkin, Juggernaut, Mirage, Leviathan, Tyrael, Marduk, Omega Red

Last edited by mydas; 10-11-2023 at 12:44.
mydas is offline
Send a message via Yahoo to mydas
 



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 19:23.


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