Make button to door
Well, i usually do not like to ask for help, but i am getting desperate
I am trying to make a plugin so a person can make a button to a door... I already tried a variety of things, and most of the times, the server crashes How this works, this is a menu... Key 1 = Look at door Key 2 = Look at button Key 3 = Finish hisaim = get_use_aiming(id,hisaim...) PHP Code:
|
Re: Make button to door
Try the code below. You shouldn't mix fakemeta and engine. Also, you passed 32 where it should be 31. (0, 1, 2, ..., 31) Target and targetname are strings, not numbers.
Code:
|
Re: Make button to door
Well.. Thank you VERY MUCH for answering
I do not know for not mix fakemeta & engine, but nothing that I tried worked, so i started to ignore scripting rules first, on the "equal(classname, "func_door", 9)", i had predicted the _rotating problem, and at first i did put the &&... but i figured that _rotating is just a continuation of func_door and if the equal function just check the first 9 letters, it will also include the _rotating I made the entity_set_string as you sad, the door became locked but the button is not working... Do you think I have to delete this old button, and create a new one with the different classname? |
Re: Make button to door
I'm not sure how to change keyvalues properly, but my guess is to use this:
Code:
instead of this: Code:
|
Re: Make button to door
Found the problem I can not change the "classname" of something, I have to create a new object with the new classname
If both items is already a door and a button it works Thank you... |
Re: Make button to door
Quote:
Code:
|
| All times are GMT -4. The time now is 00:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.