The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
#1
Question  dont nowhow to fix it :( Script help!!

i dont now what i did wrongwhen i start the map it looks at the hollow (hollow_1) like i wantet but if i pick it up it normally needs to start looking at the chains (use_1) wich doesnt do after i picked it up also i forgot to insert a timer but if someone can help me fix this first please il apreciate it thanks for reading Smile





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

}
void free(string &in asItem, string &in asEntity)
{
SetPlayerActive(true);
SetPlayerCrouching(false);
StopPlayerLookAt();
}
void use(string &in asEntity, int alState)
{
StartPlayerLookAt("use_1", 2, 3, "");

}


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

}
(This post was last modified: 08-11-2012, 03:04 PM by timonenluca.)
08-11-2012, 02:57 PM
Find


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



Users browsing this thread: 1 Guest(s)