+use triggering action. (HOW?)
I just want to know how to do a simple code...
I want to, when someone press de "+use" buttom (E default), I get something doing... For example, when someone press E, and if he is near some entity, then he is going to die... Thank you ;) EDIT: It's for The Specialists mod! |
Re: A simple question...
PHP Code:
|
Re: A simple question...
|
Re: A simple question...
You would have to hook FM_CmdStart and then check for with button the player press.
I suggest you to edit your title to be more explicit about your request. |
Re: +use triggering action. (HOW?)
wait wait... ( I changed the topic title... sorry for not being explicit )
Wait... I didn't got it yet... What code do I have actually to do? I tried: Code:
register_clcmd( "+use", "CommandUse" ) |
Re: +use triggering action. (HOW?)
For example, this thing I whipped up in literally like ten seconds will kill someone when they are if the water. It probably doesn't work, but it is just an example.
PHP Code:
|
Re: +use triggering action. (HOW?)
but is this code activated by +use button?
I got my function working already, all I want to know is how to get it triggered by +use button (E default) |
Re: +use triggering action. (HOW?)
PHP Code:
|
Re: +use triggering action. (HOW?)
This is the best way to detect button usage:
Code:
|
Re: +use triggering action. (HOW?)
THANK YOOOOOOOOUUUU
I am gonna test it 'till tomorrow... I appreciate your help.. ;) Thanks for helping a newbie... lol =) I am considering to study "programming" ( I don't know how I should say this in english.) Anyway. Thanks for your help guys... I am gonna +karma you ;) |
| All times are GMT -4. The time now is 08:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.