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
function not working, is something wrong?
Tryed Offline
Junior Member

Posts: 10
Threads: 3
Joined: Feb 2011
Reputation: 0
#5
RE: function not working, is something wrong?

Thanks, that worked. Also, another problem came up. Its the same problem I had when using the jar on the hatch, but now putting the function in OnEnter wont work either.

void LeverUsed (string &in asItem, string &in asEntity)
{
     SetPropObjectStuckState("lever_small01_1", 0);
     CreateParticleSystemAtEntity("oilused", "sh", "area_leveroil", false);
     PlaySoundAtEntity("", "16_grease_lever", "area_leveroil", 0, false);
}

void OnEnter()
     {
AddUseItemCallback("", "oiljar", "lever_small01_1", "LeverUsed", false);
}
The only thing that works in this function is the sound. Whats going on here???
(This post was last modified: 02-16-2011, 05:14 PM by Tryed.)
02-16-2011, 05:13 PM
Find


Messages In This Thread
RE: function not working, is something wrong? - by Tryed - 02-16-2011, 05:13 PM



Users browsing this thread: 1 Guest(s)