script and npc changes
This commit is contained in:
@@ -18,8 +18,8 @@ void main()
|
||||
float fOrient = GetFacing( oBench );
|
||||
|
||||
// Calculate location of the 2 pillows
|
||||
location locPillow1 = Location( oArea, locBench + AngleToVector( fOrient + 90.0f ) / 2.0f, fOrient );
|
||||
location locPillow2 = Location( oArea, locBench + AngleToVector( fOrient - 90.0f ) / 2.0f, fOrient );
|
||||
location locPillow1 = Location( oArea, locBench + AngleToVector( fOrient + 90.0f ) / 2.1f, fOrient );
|
||||
location locPillow2 = Location( oArea, locBench + AngleToVector( fOrient - 90.0f ) / 2.1f, fOrient );
|
||||
|
||||
// Create the 2 pillows
|
||||
oPillow1 = CreateObject( OBJECT_TYPE_PLACEABLE, "plc_invisobj", locPillow1 );
|
||||
|
@@ -22,9 +22,9 @@ void main()
|
||||
SetLocalInt(OBJECT_SELF, "X2_NUMTIMES_BLOCKED",0);
|
||||
ClearAllActions();
|
||||
}
|
||||
if(GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 5)
|
||||
if(GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 2)
|
||||
{
|
||||
if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN) && GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 7 )
|
||||
if(GetIsDoorActionPossible(oDoor, DOOR_ACTION_OPEN) && GetAbilityScore(OBJECT_SELF, ABILITY_INTELLIGENCE) >= 4 )
|
||||
{
|
||||
DoDoorAction(oDoor, DOOR_ACTION_OPEN);
|
||||
}
|
||||
|
Reference in New Issue
Block a user