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
scrip help please
abe.lloyd Offline
Junior Member

Posts: 15
Threads: 2
Joined: Mar 2012
Reputation: 0
#1
scrip help please

this scrip wont work help please
////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "crowbar_1", "sewer_arched_1", "UsedCrowbarOnDoor", true);
AddEntityCollideCallback("crowbar_joint_1", "ScriptArea_1", "CollideAreaBreakDoor", true, 1);
}
void UsedCrowbarOnDoor(string &in asItem, string &in asEntity)
{
AddTimer("", 0.2, "TimerSwitchShovel");
RemoveItem("crowbar_1");
}



void TimerSwitchShovel(string &in asTimer)
{
PlaySoundAtEntity("","puzzle_place_jar.snt", "", 0, false);
SetEntityActive("crowbar_joint_1", true);
}


void CollideAreaBreakDoor(string &in asParent, string &in asChild, int alState)
{
AddPlayerSanity(25);
PlayMusic("10_puzzle01.ogg", false, 0.7, 0.1, 10, false);
SetSwingDoorLocked("sewer_arched_1", false, true);
AddPropImpulse("sewer_arched_1", 0, 0, -50, "World");
SetSwingDoorDisableAutoClose("sewer_arched_1", true);
SetSwingDoorClosed("sewer_arched_1", false, false);
SetMoveObjectState("sewer_arched_1", 1);
PlaySoundAtEntity("","break_wood_metal", "AreaBreakEffect", 0, false);
CreateParticleSystemAtEntity("", "ps_hit_wood", "AreaBreakEffect", false);
SetEntityActive("crowbar_joint_1", false);
SetLocalVarInt("Door", 1);
////////////////////////////
// Run when entering map
void OnEnter()
{
}

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

}
04-03-2012, 02:55 PM
Find


Messages In This Thread
scrip help please - by abe.lloyd - 04-03-2012, 02:55 PM
RE: scrip help please - by stonecutter - 04-03-2012, 03:07 PM
RE: scrip help please - by abe.lloyd - 04-03-2012, 03:15 PM
RE: scrip help please - by stonecutter - 04-03-2012, 03:29 PM
RE: scrip help please - by JetlinerX - 04-03-2012, 03:40 PM
RE: scrip help please - by abe.lloyd - 04-03-2012, 03:57 PM
RE: scrip help please - by Musier - 04-03-2012, 04:04 PM
RE: scrip help please - by abe.lloyd - 04-03-2012, 04:08 PM
RE: scrip help please - by JetlinerX - 04-03-2012, 04:14 PM
RE: scrip help please - by abe.lloyd - 04-03-2012, 04:15 PM
RE: scrip help please - by JetlinerX - 04-03-2012, 04:16 PM
RE: scrip help please - by abe.lloyd - 04-03-2012, 04:21 PM
RE: scrip help please - by JetlinerX - 04-03-2012, 04:52 PM
RE: scrip help please - by Musier - 04-03-2012, 04:53 PM



Users browsing this thread: 2 Guest(s)