Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help SetPlayerLookAt Questions
BadCoverMan Offline
Junior Member

Posts: 27
Threads: 7
Joined: Feb 2012
Reputation: 0
#3
RE: SetPlayerLookAt Questions

(02-25-2012, 08:26 PM)Unearthlybrutal Wrote: StartPlayerLookAt("[entity name here]", 3.0f, 5.0f, "");
Worked perfectly. It played the sound too, but I tried to add a timer and it didn't do what I wanted it to.

This is what it looks like.

Spoiler below!

void Warning(string &in asTimer)
{
if(asTimer == "StopLookAt")
{
StopPlayerLookAt();
}
if(asTimer == "FadeSmoke")
{
FadeEnemyToSmoke("alexander_1", true);
}
}

void Onstart();
{
AddEntityCollideCallback("Player", "Warning_1", "EntityTalk", true, 1);
}

void EntityTalk(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("alexander_1", 3.0f, 5.0f, "");
PlaySoundAtEntity("", "warning_1.snt", "Player", 0, false);
AddTimer("StopLookAt", 4, "Warning");
AddTimer("FadeSmoke", 4, "Warning");
}


I wanted both things to happen after 4 seconds.
02-25-2012, 09:14 PM
Find


Messages In This Thread
SetPlayerLookAt Questions - by BadCoverMan - 02-25-2012, 08:00 PM
RE: SetPlayerLookAt Questions - by BadCoverMan - 02-25-2012, 09:14 PM
RE: SetPlayerLookAt Questions - by BadCoverMan - 02-25-2012, 09:36 PM
RE: SetPlayerLookAt Questions - by BadCoverMan - 02-26-2012, 01:15 AM



Users browsing this thread: 1 Guest(s)