Nervly
Junior Member
Posts: 40
Threads: 2
Joined: Feb 2012
Reputation:
0
|
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?
|
|
06-21-2012, 07:45 PM |
|