Jump to content

Home

The 'Rescuer' script for the Leviathan?


DarthJebus05

Recommended Posts

Tupac Amaru explained this to me a few months ago. I'll see if I can find the post.

 

EDIT: Here we go:

 

This script will make Canderous the player character.
void SwitchToNPC( int nNPC );

void main() {
DelayCommand(1.0, SwitchToNPC(NPC_CANDEROUS));
}

void SwitchToNPC( int nNPC ) {
SwitchPlayerCharacter( nNPC );
}

For other characters, replace NPC_CANDEROUS with the corresponding NPC's constant. They can be found in nwscript.nss. To switch back to the main PC, use NPC_PLAYER as parameter.

Link to comment
Share on other sites

Sorry, just one more question. What does this mean?:

 

To switch back to the main PC, use NPC_PLAYER as parameter.

 

Is it another script or what?

 

Sort of, you'll need to make another script to change back, I think. It should look like this:

 

void SwitchToNPC( int nNPC );

void main() {
DelayCommand(1.0, SwitchToNPC(NPC_PLAYER));
}

void SwitchToNPC( int nNPC ) {
SwitchPlayerCharacter( nNPC );
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...