I have a few problems with scripting.
1) I followed the tutorial on pawn scripting, and I got my pawn (robot) to spot the player and give chase. I then placed another robot pawn in the game and let it do conversations. However, when the first robot spots me it disappeared, and the game slowed. I thought it might be that the robots were somehow conflicting although the PawnType names were different, So I changed from the robot actor to another actor, and that solved that problem. I placed another pawn with a different actor, and give that one something else to do. However, although the PawnType name and actor are different, when the robot spots me, it disappears again. Can anyone tell me what the problem might be?
2) I used the rfscriptingv1demo to create this test script for my actor:
Spawn[()
{
Console(true);
SetEventState("ForceCamera1", true);
SetHudDraw(true);
Scale(1);
IsPushable(true);
MoveForward("Walk", SPEED, 45, "");
RotateMove("", SPEED, SPEED, 0, 40, 0, "");
MoveForward("", SPEED, 100, "");
RotateMove("", SPEED, SPEED, 0, 70, 0, "");
SoundLoop(false);
ShowTextDelay(1, "Shelley", "Idle", "Hello,<CR>My name
<CR>is Shelley.", FONT, 5, "my_sounds\\hello.wav", 0, -150, "center",
200);
ShowTextDelay(2, "Shelley", "Idle", "This is a test",
FONT, 5, "my_sounds\\testing.wav", 0, -150, "center", 200);
ShowTextDelay(3, "Shelley", "Idle", "I am hoping this
works.", FONT, 5, "my_sounds\\hope.wav", 0, -150, "center", 200);
ShowTextDelay(4, "Shelley", "Idle", "Just sit back and
watch...", FONT, 5, "my_sounds\\watch.wav", 0, -150, "center", 200);
SetFlag(1, true); //Start up Rob to walk in
}]
}
My sound file loops till the text disappears. How can I get it to play only once? I tried SoundLoop(false), but nothing happened.
Scripting Problems
-
- Posts: 96
- Joined: Sun May 20, 2007 7:47 am