Jump to content

Invincible NPC´S on Single Player?


Recommended Posts

First of all. I would like to say that my english is pretty bad :P

Ok here goes my question: I wanted to know if there is a way to make an NPC (such as luke) Invincible. Because i love having NPC´s Fights in Single Player but i can't stand having to spawn Luke everytime he dies.

I tried to modify his health in the ext_data/npcs file but when he falls from a high place he seems to "freeze" and he doesn't move anymore like he's dead or something. Its weird. Any help?

 

I forgot to say that the game is Jedi Knight II Jedi Outcast ;)

 

sorry if my english is horrible.

Link to comment

If it works similarly to how Jedi Academy works, you could make a script like this with BehavEd:

 

//(BHVD)

affect ( "luke_inv", /*@AFFECT_TYPE*/ FLUSH )
{
    set ( /*@SET_TYPES*/ "SET_INVINCIBLE", "TRUE" );
    set ( /*@SET_TYPES*/ "SET_NO_FALLTODEATH", "TRUE" );
}
 

Save it as luke_inv and compile it. Put the resulting script (luke_inv.IBI) into scripts and make it a .pk3.

 

Then, once in-game, type in console npc spawn luke luke_inv, and then runscript luke_inv. The Luke Skywalker you spawned will then be completely invincible (I think... I haven't tried with the vaporizing spinning thing).

Link to comment

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...