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
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#11
RE: scrip help please

Might want to do that...

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

04-03-2012, 04:16 PM
Website Find
abe.lloyd Offline
Junior Member

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

i dont know what to name things
04-03-2012, 04:21 PM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#13
RE: scrip help please

What ever you want, just make sure they are the same name in the script.

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

04-03-2012, 04:52 PM
Website Find
Musier Offline
Junior Member

Posts: 19
Threads: 3
Joined: Jan 2012
Reputation: 0
#14
RE: scrip help please

{
AddUseItemCallback("", "crowbar_1", "door_1", "UsedCrowbarOnDoor", true);
AddEntityCollideCallback("crowbar_joint_1", "crowbar_smash_01", "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)
{
GiveSanityDamage(35.05f, true);
PlayMusic("00_cuts.ogg", false, 0.7, 0.1, 10, false);
SetSwingDoorLocked("door_1", false, true);
AddPropImpulse("door_1", -3, 0, 0, "world");
SetSwingDoorDisableAutoClose("door_1", true);
SetSwingDoorClosed("door_1", false, false);
SetMoveObjectState("door_1", 1);
PlaySoundAtEntity("","break_wood_metal", "AreaBreakEffect", 0, false);
CreateParticleSystemAtEntity("", "ps_hit_wood", "AreaBreakEffect", false);
SetEntityActive("crowbar_joint_1", false);
SetEntityActive("crowbar_dyn_1", true);
SetLocalVarInt("Door", 1);
}

This is my script. I copy this with my own custom story. Hope I help you.

[Image: lolfeminizemasteryibyki.jpg]


I will show you the path
04-03-2012, 04:53 PM
Website Find




Users browsing this thread: 1 Guest(s)