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
Simple scripting
Funman Offline
Member

Posts: 53
Threads: 10
Joined: Apr 2011
Reputation: 0
#4
RE: Simple scripting

Ok, so this is my code for doing what I mentioned before, but it doesn't work. Could someone see if there's a mistake?





void OnStart()

{
SetEntityPlayerInteractCallback("mansion_1", "Break_Door", true);
}

void Break_Door(string &in entity)

{
SetPropHealth("mansion_1", 0);
}


void OnEnter()
{

}

void OnLeave()
{

}

Is something required in the entity tab?
(This post was last modified: 08-30-2011, 01:46 AM by Funman.)
08-30-2011, 01:22 AM
Find


Messages In This Thread
Simple scripting - by Funman - 08-28-2011, 11:01 PM
RE: Simple scripting - by Russ Money - 08-28-2011, 11:04 PM
RE: Simple scripting - by Elven - 08-28-2011, 11:05 PM
RE: Simple scripting - by Funman - 08-30-2011, 01:22 AM



Users browsing this thread: 1 Guest(s)