Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DarthParametric opened this issue Sep 13, 2019 · 0 comments
Labels
Minor Issue Aesthetic issue or other problem that isn't really a bug Module: Peragus Issue occurs primarily on Peragus Type: Scripting This issue is related specifically to a scripting bug/error

Comments

@DarthParametric
Copy link
Contributor

DarthParametric commented Sep 13, 2019

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"));
		}
}
@DarthParametric DarthParametric added Minor Issue Aesthetic issue or other problem that isn't really a bug Module: Peragus Issue occurs primarily on Peragus Type: Scripting This issue is related specifically to a scripting bug/error labels Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Issue Aesthetic issue or other problem that isn't really a bug Module: Peragus Issue occurs primarily on Peragus Type: Scripting This issue is related specifically to a scripting bug/error
Projects
None yet
Development

No branches or pull requests

1 participant