Force_use
Alright, I was wondering, how I could force open a door.
I figured, a good way to do it is: force_use ( user, used ) Can anyone help me, never used it before. |
Re: Force_use
Code:
|
Re: Force_use
Could you please give me and example code on how to use this?
|
Re: Force_use
What do do you want?
get the door entity number and use the line I gave you |
Re: Force_use
If the door is a button-only door, that wouldn't do anything. You should use Ham_Use from Ham Sandwich.
|
Re: Force_use
Wouldn't dllfunc(DLLFunc_Use, ent, id) work just fine?
|
Re: Force_use
Probably.
|
Re: Force_use
Call force_use with the door entity as both user and
used entities, ignore the player entity. This will force any door to open/close. |
Re: Force_use
Quote:
|
Re: Force_use
Quote:
it should work. Note: For multi-part doors, you will need to scan for all the doors with the same targetname as the door entity you selected and call force_use on them (excluding the selected door entity). |
All times are GMT -4. The time now is 20:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.