The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Paintings disappearing but not re-appearing
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#1
Paintings disappearing but not re-appearing

The script is only 50% functional. The paintings only disappear when I look at them but they won't re-appear when I'm not looking.



void PaintingDisappear(string &in asEntity, int alState)
{
if (alState == 1)
{
for(int i=1;i<=12;i++){
SetPropActiveAndFade("insane_painting_"+i+"", false, 1.0f);
}
}
if(alState == -1)
{
for(int i=1;i<=12;i++){
SetPropActiveAndFade("insane_painting_"+i+"", true, 1.0f);
}
}

}

"What you think is irrelevant" - A character of our time

A Christmas Hunt
(This post was last modified: 08-20-2012, 01:10 AM by i3670.)
08-20-2012, 12:25 AM
Find


Messages In This Thread
Paintings disappearing but not re-appearing - by i3670 - 08-20-2012, 12:25 AM



Users browsing this thread: 1 Guest(s)