DispatchKeyValue
i saw somebody used code to edit the function of a door. i only dont know how this actualy works, so maybe someone can give me a little help.
im running a rp mod (harbu) on the map mecklenburg_final. now when i start the server i notice that all the doors that should be closed, are open. i know there is a way to edit the function, i only dont know how to code it. this is wat i saw someone use it to edit the function Code:
how can i say that the door has to be closed on server start? also when i make a "new hospitaldoor" as example, it says "Hospital is never used before" of whatever :? |
nobody knows?
|
282 is the ent id without players right? if thats so, it should work.
|
Re: DispatchKeyValue
Quote:
And you can just do force_use. |
i thought his "new hospitaldoor" was refering to the code for creating a new varible. lol
well i was assuming that he was setting those other keyvalues to do other things then just lock it, but if that is what hes doing then yea, force_use it. |
Quote:
|
wait -1 should make it close 4ever until its changed again, movesnd is the value for the defualt hl sound that is played when the door is opened, i forgot the other 2 flags.
|
If your spawnflags is already even, add 1 to it for it to start open (or closed based on how the door was created), and if it is odd then it should already have that flag. If it has that flag and you don't want it to subtract 1 from the spawnflags.
Anyway, use force_use. |
alraight! thanx for the respond..think í can fix it now.
anyways what do u guys mean with force_use, and how do i use it:? |
[small]
public whateverfunction() { force_use(1,whatevertheentidis) } |
| All times are GMT -4. The time now is 14:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.