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 Dissapearing Wall
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#3
RE: Dissapearing Wall

Well, first you need to name the wall, name it to "WallDissapear" Also make the are that the player collides with. Name it CollideWallDissapear

void OnStart()
{
AddEntityCollideCallback("Player", "CollideWallDissapear", "RemoveWallFunc", true, 1);

}

void RemoveWallFunc(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WallDissapear", false)
GiveSanityDamage(5, true);
}


This will make the wall dissapear and remove sanity but I don't know how to make a earthquake.

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
(This post was last modified: 02-20-2012, 09:47 PM by GoranGaming.)
02-20-2012, 09:46 PM
Website Find


Messages In This Thread
Dissapearing Wall - by Stepper321 - 02-20-2012, 08:10 PM
RE: Dissapearing Wall - by Unearthlybrutal - 02-20-2012, 08:32 PM
RE: Dissapearing Wall - by GoranGaming - 02-20-2012, 09:46 PM
RE: Dissapearing Wall - by SilentStriker - 02-20-2012, 09:49 PM
RE: Dissapearing Wall - by Your Computer - 02-21-2012, 06:53 AM
RE: Dissapearing Wall - by flamez3 - 02-21-2012, 03:21 AM



Users browsing this thread: 5 Guest(s)