Jump to content

Home

Syntax Error in nwscript.nss


tk102

Recommended Posts

For those of you attempting to compile KotOR2 scripts that include new constant values or new functions, there appears to be a syntax error in nwscript.nss that will prevent you from compiling!

 

Near line 5710 you will see:

// RWT-OEI 01/29/04
// 794: Disables or Enables the Orient On Click behavior in creatures. If
//      disabled, they will not orient to face the player when clicked on
//      for dialogue. The default behavior is TRUE.
void SetOrientOnClick( object = OBJECT_SELF, int nState = TRUE );

 

The problem lies in this part:

object = OBJECT_SELF

 

Change it to this:

object oCreature=OBJECT_SELF

 

and then place the modified nwscript.nss file in the same folder as nwnsscomp.exe.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...