Jump to content

Home

Stasis Field bug (both Kotor and TSL)


WRFan

Recommended Posts

There's a spelling mistake in the Stasis Field script which causes the script to lose its SpellTargetLocation, so some enemies are ignored. This bug is present in both Kotor games. The variable "oTarget" is used twice:

 

oTarget = GetFirstObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_PLACEABLE);

...

oTarget = GetNextObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_PLACEABLE);

 

Instead, a new variable must be defined and then used throughout the script:

 

object oSecond = GetFirstObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE);

...

oSecond = GetNextObjectInShape(SHAPE_SPHERE, 10.0, GetLocation(oTarget), FALSE, OBJECT_TYPE_CREATURE);

 

So either change oTarget to oSecond everywhere in the script except for the GetLocation part, or replace "GetLocation(oTarget)" by "GetSpellTargetLocation()"

 

Besides, what the hell is the "OBJECT_TYPE_PLACEABLE" for? Putting computers and tables in stasis? lol. Obsidian removed this nonsense in TSL and it should be removed in Kotor 1 too.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...