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
Quick question with script!
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#3
RE: Quick question with script!

You can't interact with static objects, only entities. To get around this, create a script area that fits and wraps around the board. Name it "board_area". Under the Area tab, fill in the field 'PlayerInteractCallback' with "BoardPhysicsOn". Make sure PlayerInteractCallbackAutoRemove is checked.

In your script, put this function

void BoardPhysicsOn(string &in entity)
{
SetPropStaticPhysics("bored1", false);
SetEntityInteractionDisabled("board_area", true);
}

(This post was last modified: 06-26-2011, 01:52 AM by palistov.)
06-26-2011, 01:52 AM
Find


Messages In This Thread
Quick question with script! - by SLAMnesia - 06-26-2011, 01:23 AM
RE: Quick question with script! - by Tanshaydar - 06-26-2011, 01:39 AM
RE: Quick question with script! - by palistov - 06-26-2011, 01:52 AM



Users browsing this thread: 1 Guest(s)