Flashlight vertical?

Topics regarding Scripting with Reality Factory
Locked
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Flashlight vertical?

Post by incenseman2003 »

This script allows the flashlight to work horizontally. How would one make it work vertically as well, to look everywhere the player does?

{
Spawn[ ()
{
SetNoCollision();
FadeOut(0, 0);
LowLevel("Update");
//MoveForward("Idle", 10000, 10000, "");
}]

Update[ ()
{
MatchPlayerAngles();
PositionToPlayer(0, 0, 0);
PositionToPlayer(0, 0, GetCollideDistance("Bip01", 0, 0, 500000)-20, true);

RestartOrder();
}]
}
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

:roll: how many flashlight topics do we need?

viewtopic.php?t=490

[Locked]
Locked