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
HasItem problem [SOLVED]
Dalroc Offline
Member

Posts: 57
Threads: 2
Joined: Mar 2011
Reputation: 0
#4
RE: HasItem problem

Remove the " == true" from if(HasItem("key_storage") == true), like this
void CollideAreaLiving(string &in asParent, string &in asChild, int alState)
{
    if(HasItem("key_storage")){
//Slime Fades
        SetPropActiveAndFade("slime_6way_1", true, 1.5f);
        SetPropActiveAndFade("slime_anim_wall_1", true, 1.5f);
        SetPropActiveAndFade("slime_pile_1", true, 1.5f);
        SetPropActiveAndFade("slime_pile_2", true, 1.5f);
//Effects
        StartScreenShake(0.115, 2.0f, 0.1f,0.3f);
        FadeSepiaColorTo(100.0f, 4.0f);
        FadeRadialBlurTo(0.15f, 6.0f);
        PlaySoundAtEntity("", "guardian_activated.snt", "Player", 0, false);
//Timer to remove effects
        AddTimer("FadeGone", 3.0f, "GuardianTimer");
    }
}
(This post was last modified: 04-09-2011, 01:36 PM by Dalroc.)
04-09-2011, 01:36 PM
Find


Messages In This Thread
HasItem problem [SOLVED] - by Linus Ågren - 04-09-2011, 07:58 AM
RE: HasItem problem - by Pandemoneus - 04-09-2011, 09:51 AM
RE: HasItem problem - by Linus Ågren - 04-09-2011, 11:37 AM
RE: HasItem problem - by Dalroc - 04-09-2011, 01:36 PM
RE: HasItem problem - by Linus Ågren - 04-09-2011, 11:25 PM
RE: HasItem problem - by Dalroc - 04-09-2011, 11:44 PM
RE: HasItem problem - by Linus Ågren - 04-09-2011, 11:57 PM
RE: HasItem problem - by Dalroc - 04-10-2011, 12:12 AM
RE: HasItem problem - by Linus Ågren - 04-22-2011, 01:51 PM
RE: HasItem problem [SOLVED] - by Dalroc - 04-22-2011, 03:52 PM



Users browsing this thread: 6 Guest(s)