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!!
timonenluca Offline
Junior Member

Posts: 18
Threads: 7
Joined: Oct 2011
Reputation: 0
#3
RE: dont nowhow to fix it :( Script help!!

(08-11-2012, 03:18 PM)ZereboO Wrote: 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()
{

}
thanks it worked im currently not making any kind of story im learning anyways thanks for help now i now what i did wrong Wink
08-11-2012, 03:57 PM
Find


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



Users browsing this thread: 1 Guest(s)