AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force_use (https://forums.alliedmods.net/showthread.php?t=57095)

Da_sk8rboy 06-28-2007 05:10

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.

P34nut 06-28-2007 05:27

Re: Force_use
 
Code:
dllfunc(DLLFunc_Touch, doorent, id)

Da_sk8rboy 06-28-2007 05:33

Re: Force_use
 
Could you please give me and example code on how to use this?

P34nut 06-28-2007 06:01

Re: Force_use
 
What do do you want?

get the door entity number and use the line I gave you

XxAvalanchexX 06-28-2007 14:39

Re: Force_use
 
If the door is a button-only door, that wouldn't do anything. You should use Ham_Use from Ham Sandwich.

stupok 06-28-2007 15:01

Re: Force_use
 
Wouldn't dllfunc(DLLFunc_Use, ent, id) work just fine?

XxAvalanchexX 06-28-2007 15:05

Re: Force_use
 
Probably.

SpannerSpammer 07-02-2007 05:57

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.

P34nut 07-02-2007 10:52

Re: Force_use
 
Quote:

Originally Posted by SpannerSpammer (Post 497390)
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.

Also the double doors in de_nuke?

SpannerSpammer 07-03-2007 05:44

Re: Force_use
 
Quote:

Originally Posted by P34nut (Post 497531)
Also the double doors in de_nuke?

If they're func_door or func_door_rotating entities,
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.