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
movable books
liamthespy Offline
Junior Member

Posts: 26
Threads: 10
Joined: Jun 2012
Reputation: 0
#1
movable books

I was wondering if there were any tutorials for this? I can't seem to find any ( judging by how I missed the roman numeral props, I'm probably just too stupid to find it. ) Right now I'm trying to use


////////////////////////////
// Run when entering map
void OnEnter()
{
SetEntityPlayerInteractCallback("bookmoveg", "trapopen", true);
}

void SetMoveObjectState(string &in item)
{
SetPropHealth("barrier", 0);
SetEntityActive("barrier", false);
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}

to cause the movable book to destroy a barrier keeping a hatch closed, but it ain't working. I checked the engine scripts page on the wiki but theres nothing relevant to the book.
(This post was last modified: 06-17-2012, 11:56 PM by liamthespy.)
06-17-2012, 11:53 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#2
RE: movable books

Change

void SetMoveObjectState(string &in item)

to

void trapopen(string &in item)

"What you think is irrelevant" - A character of our time

A Christmas Hunt
06-18-2012, 12:14 AM
Find




Users browsing this thread: 1 Guest(s)