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
[Solved] EnableBreakable Function?
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#2
RE: EnableBreakable Function?

Im not 100% sure are we talking about the same window entity, but only way to get the window breakable after examination goes something like this: there are three kinds of window entities on this one: "mansionbase_large_window_breakable.ent", "mb_window.ent" and "mb_window_noglass.ent".
You have only the mb_window.ent active first. Your script goes something like this:
void Examination (string &in asEntity)
{
SetEntityActive ("mb_window.ent", false);
SetEntityActive ("mb_window_noglass.ent", true);
SetEntityActive ("mansionbase_large_window_breakable.ent", true);
}
There's a minor visual change in the glass but maybe you just could add there some kind of glass break sound to cover it up.

03-04-2012, 08:16 PM
Find


Messages In This Thread
RE: EnableBreakable Function? - by JMFStorm - 03-04-2012, 08:16 PM
RE: EnableBreakable Function? - by Strembitsky - 03-04-2012, 09:07 PM



Users browsing this thread: 1 Guest(s)