Jump to content

How to enable and disable NOCLIP for NPCs


Recommended Posts

First of all, I learned a bit about Behaved coding and ibi files thanks to @Linken

And I did some research of @Nikomaru14's Singleplayer Runscripts

 

You can enable noclip for npcs which has a targetname but it doesnt have disable options

Linken helped me to disable noclips and set npcs to default

 

Enable noclip

// Generated by BehavEd

set ( /*@SET_TYPES*/ "SET_BEHAVIOR_STATE", /*@BSTATE_STRINGS*/ "BS_NOCLIP" );
set (/*@SET_TYPES*/ "SET_IGNOREPAIN", /*@BOOL_TYPES*/ "true" );
set (/*@SET_TYPES*/ "SET_INVINCIBLE", /*@BOOL_TYPES*/ "true" );

 

Disable noclip

//Generated by BehavEd

set ( /*@SET_TYPES*/ "SET_BEHAVIOR_STATE", /*@BSTATE_STRINGS*/ "BS_DEFAULT" );
set ( /*@SET_TYPES*/ "SET_IGNOREPAIN", /*@BOOL_TYPES*/ "false" );
set ( /*@SET_TYPES*/ "SET_INVINCIBLE", /*@BOOL_TYPES*/ "false" );

 

Now we can easily disable noclip for npcs

Thank you for reading!

Linken, Asgarath83, mjt and 2 others like this
Link to comment
  • DarthValeria changed the title to How to enable and disable NOCLIP for NPCs

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...