Skip to content

Peragus Administration Level - Kreia's corpse visibly disappears when looting plasma torch in morgue #32

@DarthParametric

Description

@DarthParametric

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.

Kreia_Corpse_Sml

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

No one assigned

    Labels

    Minor IssueAesthetic issue or other problem that isn't really a bugModule: PeragusIssue occurs primarily on PeragusType: ScriptingThis issue is related specifically to a scripting bug/error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions