Initial commit
Initial commit [v9.7]
This commit is contained in:
32
_module/nss/at_shilliana2.nss
Normal file
32
_module/nss/at_shilliana2.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "NW_I0_PLOT"
|
||||
#include "in_g_cutscene"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oMe = OBJECT_SELF;
|
||||
object oTarget;
|
||||
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
FadeToBlack(oPC);
|
||||
FadeFromBlack(oPC);
|
||||
|
||||
float fRange =GetHorizontalDistanceBetween(oMe,oPC);
|
||||
float fAngle = GestaltGetDirection(oMe,oPC) + (40.0 / sqrt(GetHorizontalDistanceBetween(oMe,oPC)));
|
||||
|
||||
if (fAngle > 360.0) fAngle -= 360.0;
|
||||
AssignCommand(oPC,SetCameraHeight(oPC,0.0));
|
||||
AssignCommand(oPC,SetCameraFacing(fAngle,fRange,80.0));
|
||||
|
||||
// Give the speaker the items
|
||||
CreateItemOnObject("yeel", GetPCSpeaker(), 1);
|
||||
|
||||
PlayCharacterTheme(29);
|
||||
|
||||
// Destroy an object (not fully effective until this script ends).
|
||||
DestroyObject(GetObjectByTag("towerofangarngit"));
|
||||
|
||||
oTarget = GetObjectByTag("ptnwtrfnl232");
|
||||
DestroyObject(oTarget, 1.0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user