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
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Dissapearing Wall

(02-20-2012, 09:46 PM)GoranGaming Wrote: 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.
This wont remove a wall. Because walls are static objects you first need to convert them to a staticProp(entity) and then create a body so the player wont walk through the wall. Then when you've done that you can remove the walls through scripting


02-20-2012, 09:49 PM
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: 1 Guest(s)