Hello there. What I am hoping to achieve is that I have the player enter a room with a living entity in it. He then pulls a lever, which plays the "guardian activate" sound, and activates a Script Area in the doorway. As soon as he tries to leave and collides with it, he is forced to look back at the entity. The entity then warns him about something.
This is what I have so far, it's pretty much everything except the functions to be executed when leaving through the door.
Edit: Also, the sound file to played will be "warning_1.snt"
void EntityTalk(string &in asParent, string &in asChild, int alState)
{
//Function needed for Player to look at entity and have entity speak to him. Then possibly fade to dust? Something like that.
}
I appreciate the help, thank you.
(This post was last modified: 02-25-2012, 08:05 PM by BadCoverMan.)
Thank you very much. I just realized though that Alexander is not an "enemy" so FadeEnemyToSmoke wouldn't necessarily work. I'd rather not have him just abruptly disappear so is there any way to fade him to smoke?
SetPropActiveAndFade("alexander_1", false, 3.0f);
Fades the entity away.
...you can use particle system to make the smoke
CreateParticleSystemAtEntity("particle", " [particlesystem you want to use].ps ",
"alexander_1" , false);
...you can use particle system to make the smoke
CreateParticleSystemAtEntity("particle", " [particlesystem you want to use].ps ",
"alexander_1" , false);
Thank you very much! I really appreciate your help