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
Need some help :)
Artsy Offline
Member

Posts: 213
Threads: 10
Joined: Feb 2014
Reputation: 9
#6
RE: Need some help :)

Example for making player lie on the floor:
FadePlayerRollTo(50, 220, 220);

Usage of LookAt:
StartPlayerLookAt("PlayerLookAtArea_1", 0.5f, 0.5f, "FunctionName");

PlayerLookAtArea_1 - can be named anything, just make sure it matches the name of the area box or entity you want the player to look at.

0.5f and 0.5f - speed of looking at the area box/entity; maximum speed.

FunctionName - you also name this one whatever you want. It's basically the function to call when the player looks at the area box/entity.
I believe it's like this:
FunctionName()
{
     // stuff you want to happen
}

And don't forget to use StopPlayerLookAt(); when the player's done looking or else it will make you force look at the area box/entity.
08-29-2014, 11:33 AM
Find


Messages In This Thread
Need some help :) - by Catalyst - 08-29-2014, 10:12 AM
RE: Need some help :) - by Radical Batz - 08-29-2014, 10:22 AM
RE: Need some help :) - by Catalyst - 08-29-2014, 10:29 AM
RE: Need some help :) - by Mudbill - 08-29-2014, 10:39 AM
RE: Need some help :) - by Catalyst - 08-29-2014, 10:45 AM
RE: Need some help :) - by Artsy - 08-29-2014, 11:33 AM
RE: Need some help :) - by Catalyst - 08-29-2014, 11:54 AM
RE: Need some help :) - by Radical Batz - 08-29-2014, 02:30 PM



Users browsing this thread: 1 Guest(s)