-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Minor IssueAesthetic issue or other problem that isn't really a bugAesthetic issue or other problem that isn't really a bugModule: PeragusIssue occurs primarily on PeragusIssue occurs primarily on PeragusType: ScriptingThis issue is related specifically to a scripting bug/errorThis issue is related specifically to a scripting bug/error
Description
The covered corpse placeable (g_tresgencorp004) has OnClosed script a_setkrespwn that has a 1 second fade out but destroys the Kreia corpse placeable straight away. There needs to be a delay added to the destroy command so it is properly covered by the fade to black.
1080 version - https://i.imgur.com/kH2wKiZ.gif
void main() {
int nGlobal = GetGlobalNumber("101PER_Kreia_Spawn");
if ((nGlobal == 0))
{
object oKreia = GetObjectByTag("kreia_corpse", 0);
location lBed = GetLocation(GetObjectByTag("WP_KREIA_SPAWN1", 0));
SetGlobalFadeOut(0.0, 1.0);
SetFadeUntilScript();
SetGlobalNumber("101PER_Kreia_Spawn", 2);
DestroyObject(oKreia, 0.0, TRUE);
oKreia = CreateObject(OBJECT_TYPE_CREATURE, "p_kreia002", lBed);
AssignCommand(GetFirstPC(), ClearAllActions());
AssignCommand(oKreia, ClearAllActions());
AssignCommand(oKreia, ActionStartConversation(GetFirstPC(), "101kreia"));
}
}
Metadata
Metadata
Assignees
Labels
Minor IssueAesthetic issue or other problem that isn't really a bugAesthetic issue or other problem that isn't really a bugModule: PeragusIssue occurs primarily on PeragusIssue occurs primarily on PeragusType: ScriptingThis issue is related specifically to a scripting bug/errorThis issue is related specifically to a scripting bug/error
