I'm creating a virtual art exhibit in RF where you can walk up to the pictures and click on them, and then a larger higher quality version of the picture appears on screen. So far I have everything working, except once you click on a picture and look at it once, it doesn't allow you to do it again unless you restart the level.
What I am using is the pawn conversation system to do this. First I put an invisible brush in front of the picture of interest and make it a model. Then I hook a trigger to it that can only be activated with the use key. When clicked, the trigger spawns a pawn (proj.act) with a conversation script attached to it, and in this script I override the conversation background with my higher quality image as the background that corresponds to the image the user clicked on.
What I think my problem is is that the pawn can only spawn once, so therefore the conversation will only appear once, but I could be wrong. Is there a way I can script it into the pawn so the conversation can be repeated, and thus the picture will keep being displayed everytime the user clicks on the model? I have been away from RF and am a bit rusty, but I've searched thru the forums and the docs but haven't been able to solve this.
Here is the conversation script I am using...
Code: Select all
{
CHARPROSEC [0]
Spawn[()
{
CustomBackground("reclaiming_space_01.bmp", 0, 0, 0, 0);
Speak("PictureText", "");
SoundConversation(CHARPROSEC);
NewConversation("Spawn", false);
}]
}
Code: Select all
[Picture]
actorname = Projectile\proj.act
actorrotation = 0 180 0
actorscale = 1
fillcolor = 0 0 0
ambientcolor = 0 0 0
subjecttogravity = false
boundingboxanimation = nocollide
shadowsize = 0
Code: Select all
{
Start[ ()
{
Conversation();
}]
}
Thanks for taking the time to read this everyone!
p.s. Speak("PictureText", "") is just referring to PictureText in the conversation.txt file telling the user to press the space bar to return to the exhibit (exit the conversation)
And of course I checked to make sure I didn't have the bOnlyOnce flag set to true in the trigger.