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
Scripting a LookAt?
Vradcly Offline
Member

Posts: 100
Threads: 6
Joined: Jan 2011
Reputation: 0
#4
RE: Scripting a LookAt?

I did like this, maybe you can find what is missing by comparing?

AddEntityCollideCallback("Player", "Torso_area1", "CollideTorso_area1", true, 1);

void CollideTorso_area1(string &in asParent, string &in asChild, int alState)
{
AddDebugMessage("Looking at torso", false);
StartPlayerLookAt("corpse_male_1", 10, 10, "");
AddTimer("stoplook", 25.0f, "TimerStopLook");
}

void TimerStopLook(string &in asTimer)
{
AddDebugMessage("Stoped looking", false);
StopPlayerLookAt();
}

Im getting confused by your code so I cant say exactly what you have to do,
hopefully that will help Smile
01-20-2011, 10:20 PM
Find


Messages In This Thread
Scripting a LookAt? - by Linus Ågren - 01-20-2011, 07:48 PM
RE: Scripting a LookAt? - by jens - 01-20-2011, 08:41 PM
RE: Scripting a LookAt? - by Linus Ågren - 01-20-2011, 10:04 PM
RE: Scripting a LookAt? - by Vradcly - 01-20-2011, 10:20 PM
RE: Scripting a LookAt? - by Seragath - 01-21-2011, 03:56 PM



Users browsing this thread: 1 Guest(s)