I have created two cogs for Nar Shadda (the level I'm working on right now), but neither of them seem to work... The first, is a cog that causes a rodian to sleep (be inactive) until the player enters a certain sector. Then, the rodian is supposed to say a line, (which is in whatever language Rodians speak, and is translated by being printed on the screen). Afterwords, the Rodian aims his gun at the player, and then come back to life. However, it doesn't quite work that way. First, all goes well, and the Rodian ignores you until you enter the sector. Then the words appear on the screen, but the sound file doesn't play (and it's not a problem with the sound itself, because its an LEC sound). During that time, the Rodian does a few sparatic gun aimings, and then he awakens, and begins shooting. After he is killed, the words are still printed on the screen every time the player enters the sector, which I don't want (I want it to only play the very first time). Here is the code:
The second code deals with the player entering the women's bathroom. Upon entering the sector, a woman is supposed to scream, then the player is to say "Woops, I'd better get out of here" (or something like that). Once again, the sound files do not play, and once again, I only want it to play once. Here's the code for this one:
Any help would be appriciated...
Code:
# Jedi Knight Cog Script # # barsec.COG # # Description # -This cog will play a line from the bartender, # -(a rodian) then cause it to aim a weapon # -at the player # # This Cog is Not supported by LucasArts Entertainment Co symbols message entered message startup message entered message user0 int awake=0 local sector bar thing bartender sound barline keyframe aim=grfire.key end # ======================================================================================== code startup: AISetMode(bartender, 0x2000); return; entered: PlaySoundThing (barline, bartender, 1); Print ("You don't belong in here."); Sleep (2); AIClearMode(bartender, 0x2000); PlayKey (bartender, aim, 1); AISetMode(bartender, 0x200); return; # ........................................................................................ end
The second code deals with the player entering the women's bathroom. Upon entering the sector, a woman is supposed to scream, then the player is to say "Woops, I'd better get out of here" (or something like that). Once again, the sound files do not play, and once again, I only want it to play once. Here's the code for this one:
Code:
# Jedi Knight Cog Script # # girlsroom.COG # # Description # -This cog will play a line from a lady in a bathroom, # -and make her scream # # # This Cog is Not supported by LucasArts Entertainment Co symbols message entered message startup sector bathroom thing lady thing player sound scream sound bettergo end # ======================================================================================== code startup: player = GetLocalPlayerThing (); return; entered: PlaySoundThing (scream, lady, 1); Print ("Whaaaaaa!!!"); Sleep (2); PlaySoundThing (bettergo, player); Print ("Woops, I'd better go...") return; # ........................................................................................ end
Any help would be appriciated...
If you choose not to decide, you still have made a choice.
Lassev: I guess there was something captivating in savagery, because I liked it.
Lassev: I guess there was something captivating in savagery, because I liked it.