Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Script/Animation

Page: 1 of 1
 brwarner
01-05-2006, 12:36 PM
#1
I have the pc positioned on a bed in a module and I want them to sleep for part of the conversation so

void main()
{
ActionPauseConversation();
SetDialogPlaceableCamera(26);
AssignCommand(GetFirstPC(),ActionPlayAnimation(26) );//dead animation
NoClicksFor(10.0);
ActionResumeConversation();
}

What i wanted to happen was for the computer to show the pc sleeping for 10 seconds then continue the conversation yet it just skips to the conversation.

This script is attached to the first node of the conv.
 Pavlos
01-05-2006, 12:48 PM
#2
You could make use of the DelayCommand function.


void main()
{
ActionPauseConversation();
SetDialogPlaceableCamera(26);
AssignCommand(GetFirstPC(),ActionPlayAnimation(26) ); //Plays Dead animation
DelayCommand(10.0, ActionResumeConversation()); //Delays this command for 10 seconds and then does the business of resuming
}


That might work for you.
Page: 1 of 1