AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block A Door Permanently (https://forums.alliedmods.net/showthread.php?t=324002)

Ynet 05-03-2020 13:56

Block A Door Permanently
 
is there a way to block a certain door from ever opening?

i know how to hook onto the object i am looking for only problem is i don't know how to disable it Permanently

Vieni 05-03-2020 14:29

Re: Block A Door Permanently
 
Quote:

Originally Posted by Ynet (Post 2697927)
is there a way to block a certain door from ever opening?

i know how to hook onto the object i am looking for only problem is i don't know how to disable it Permanently

I don't know how the map objects work, but if you get an entity, you could easily set the movetype:
Code:

entity_set_int(ent, EV_INT_movetype, MOVETYPE_NONE)
or
Code:

pev(ent, pev_movetype, MOVETYPE_NONE)

DJEarthQuake 05-04-2020 08:40

Re: Block A Door Permanently
 
I know a plugin, Transistor Radio, that BLOCKS DOORS PERMANENTLY when radio is 'planted' on one. Maybe you can analysis it, fix the plugin and extract the feature/bug for your endeavor here.

Ynet 05-04-2020 11:48

Re: Block A Door Permanently
 
i managed to block it so nvm ty

DJEarthQuake 05-04-2020 13:24

Re: Block A Door Permanently
 
Somebody else might want to know the code. Is it sharable?


All times are GMT -4. The time now is 17:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.