Initial commit
Initial commit [v9.7]
This commit is contained in:
24
_module/nss/pc_face_bgarck2.nss
Normal file
24
_module/nss/pc_face_bgarck2.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "in_g_cutscene"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("Bgarick");
|
||||
|
||||
AssignCommand(oPC, SetFacingPoint(GetPosition(oTarget)));
|
||||
|
||||
|
||||
|
||||
object oMe = OBJECT_SELF;
|
||||
|
||||
float fRange =GetHorizontalDistanceBetween(oMe,oPC);
|
||||
float fAngle = GestaltGetDirection(oMe,oPC) + (60.0 / sqrt(GetHorizontalDistanceBetween(oMe,oPC)));
|
||||
|
||||
if (fAngle > 360.0) fAngle -= 360.0;
|
||||
AssignCommand(oPC,SetCameraHeight(oPC,2.0));
|
||||
AssignCommand(oPC,SetCameraFacing(fAngle,fRange,80.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user