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 dont nowhow to fix it :( Script help!!
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#2
RE: dont nowhow to fix it :( Script help!!

StartPlayerLookAt in your use function, dosent have the right syntax

This is what i would do:

////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("player", "hollow_1", "use_1", "free", true);
SetPlayerActive(true);
SetPlayerCrouching(true);
StartPlayerLookAt("hollow_1", 2, 3, "");
if (HasItem("hollow_1"))
{
AddTimer("", 0.2f, "use");
}
}

void free(string &in asItem, string &in asEntity)
{
SetPlayerActive(true);
SetPlayerCrouching(false);
StopPlayerLookAt();
}

void use(string &in asTimer)
{
StartPlayerLookAt("use_1", 2, 3, "");
}


////////////////////////////
// Run when leaving map
void OnLeave()
{

}

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 08-11-2012, 03:21 PM by Lizard.)
08-11-2012, 03:18 PM
Find


Messages In This Thread
RE: dont nowhow to fix it :( Script help!! - by Lizard - 08-11-2012, 03:18 PM



Users browsing this thread: 1 Guest(s)