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
Valve interaction
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#2
RE: Valve interaction

Select the object in the map editor that has the wheel on it. Go to the entity tab, and where it says "ConnectionStateChangeCallback" or something of the sort, type in the TurnOnHeater function name.
Then, make your function look like this:

void Turnonheater(string &in entity)
{
if(alState==1)
{
PlaySoundAtEntity("", "22_fire.snt", "geostove", 0, false);
SetLampLit("bonfire", true, false);
}
}

Get rid of the SetEntityPlayerInteractCallback you have as well, it will mess it up.

04-19-2011, 01:56 AM
Find


Messages In This Thread
Valve interaction - by Josh707 - 04-19-2011, 01:50 AM
RE: Valve interaction - by Anxt - 04-19-2011, 01:56 AM
RE: Valve interaction - by Josh707 - 04-19-2011, 02:00 AM
RE: Valve interaction - by Apjjm - 04-19-2011, 02:04 AM
RE: Valve interaction - by Anxt - 04-19-2011, 02:12 AM
RE: Valve interaction - by Josh707 - 04-19-2011, 02:14 AM
RE: Valve interaction - by Anxt - 04-19-2011, 02:27 AM
RE: Valve interaction - by Josh707 - 04-19-2011, 12:48 PM



Users browsing this thread: 1 Guest(s)