AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   event for IN_ buttons (https://forums.alliedmods.net/showthread.php?t=241616)

daniel46 06-06-2014 12:39

event for IN_ buttons
 
i jsut need event that when player click IN_ button

Fr33m@n 06-06-2014 13:16

Re: event for IN_ buttons
 
there is no specific event for that. with FM_CmdStart, you can retrieve IN_* values and modify them easyly. Note that this event is called something like 10 time par second per player. (like prethink)

daniel46 06-06-2014 13:34

Re: event for IN_ buttons
 
there in no event that is called jsut when you press the button cause i use prethink and its fps amount in second so....

klippy 06-06-2014 16:43

Re: event for IN_ buttons
 
Quote:

Originally Posted by Fr33m@n (Post 2147657)
there is no specific event for that. with FM_CmdStart, you can retrieve IN_* values and modify them easyly. Note that this event is called something like 10 time par second per player. (like prethink)

These forwards are called every frame, so... by default it should be 100 times per second per player.

daniel46 06-06-2014 16:46

Re: event for IN_ buttons
 
so the best event is cmdstart?

klippy 06-06-2014 19:03

Re: event for IN_ buttons
 
Quote:

Originally Posted by daniel46 (Post 2147731)
so the best event is cmdstart?

Depends. Tell us which buttons are you willing to hook.

Black Rose 06-06-2014 21:54

Re: event for IN_ buttons
 
Or even better, what you're trying to do.

hornet 06-06-2014 22:26

Re: event for IN_ buttons
 
Quote:

Originally Posted by Black Rose (Post 2147808)
Or even better, what you're trying to do.

And also search.
This discussion here may be quite relevant.

daniel46 06-07-2014 10:11

Re: event for IN_ buttons
 
well what i want to do is combo contest so i need to check when player is clicking the right button and when not

SpeeDeeR 06-07-2014 10:27

Re: event for IN_ buttons
 
The easiest way I can think of is to register the forward(CmdStart) and enable/disable it when needed.


All times are GMT -4. The time now is 09:42.

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