Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help New Question: How to create a door
Nervly Offline
Junior Member

Posts: 40
Threads: 2
Joined: Feb 2012
Reputation: 0
#40
RE: 3 Questions: Cave In and Destroying bookshelf

(06-21-2012, 05:46 PM)FastHunteR Wrote: make a script area for that specific place, name it something(in this example cavein_area)
add to the script:
under void OnStart():
AddEntityCollideCallback("Player", "cavein_area", "cavein_function", true, 1);
Now, somewhere not inside a function:
void cavein_function(string &in asParent, string &in asChild, int alState)
{
//Your stuff to happen, like setentityactive and all that
}
you can look at the engine scripts page to see which is for what, not too hard.
Edit: If that doesn't work, switch "Player" with "cavein_area"
Do I make a new void OnStart() or do I write the script under the shelf one?

Check it out!
http://www.youtube.com/Nervly

Please?
[Image: please-please-please.jpg]
06-21-2012, 07:45 PM
Find


Messages In This Thread
New Question: How to create a door - by Nervly - 06-20-2012, 12:55 PM
RE: 3 Questions: Cave In and Destroying bookshelf - by Nervly - 06-21-2012, 07:45 PM



Users browsing this thread: 1 Guest(s)