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
"SetEntityActive" Help.
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#5
RE: "SetEntityActive" Help.

You're using the wrong function to call that function you'd use for oil. SetEntityPlayerInteractCallback is more for when the player interacts with entities like Doors, Chairs etc. For items, use SetEntityCallbackFunc.

Like this:
void OnStart() {
SetEntityCallbackFunc("potion_oil_1", "superscare");
}

void superscare(string &in asEntity, string &in type) {

SetEntityActive("armour_nice_complete_1", true);
SetEntityActive("armour_nice_complete_2", true);
SetEntityActive("armour_nice_complete_3", true);
SetEntityActive("armour_nice_complete_4", true);
SetEntityActive("armour_nice_complete_5", true);

}
(This post was last modified: 03-14-2012, 08:18 AM by Equil.)
03-14-2012, 08:14 AM
Find


Messages In This Thread
"SetEntityActive" Help. - by Asaratha - 03-14-2012, 05:21 AM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 05:28 AM
RE: "SetEntityActive" Help. - by Asaratha - 03-14-2012, 05:47 AM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 06:44 AM
RE: "SetEntityActive" Help. - by Equil - 03-14-2012, 08:14 AM
RE: "SetEntityActive" Help. - by Your Computer - 03-14-2012, 10:05 AM
RE: "SetEntityActive" Help. - by Equil - 03-14-2012, 10:25 AM
RE: "SetEntityActive" Help. - by Your Computer - 03-14-2012, 11:31 AM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 10:41 AM
RE: "SetEntityActive" Help. - by Strembitsky - 03-14-2012, 02:16 PM
RE: "SetEntityActive" Help. - by flamez3 - 03-14-2012, 02:35 PM
RE: "SetEntityActive" Help. - by Stepper321 - 03-14-2012, 02:29 PM
RE: "SetEntityActive" Help. - by Asaratha - 03-14-2012, 10:46 PM
RE: "SetEntityActive" Help. - by Strembitsky - 03-14-2012, 07:35 PM
RE: "SetEntityActive" Help. - by pandasFTW - 03-14-2012, 08:44 PM
RE: "SetEntityActive" Help. - by SilentStriker - 03-14-2012, 09:04 PM



Users browsing this thread: 2 Guest(s)