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
HPS script issue [SOLVED]
Andross Offline
Junior Member

Posts: 38
Threads: 1
Joined: Oct 2010
Reputation: 0
#2
RE: HPS script issue

(01-15-2011, 05:29 AM)Devil Dogs SF Wrote: AddUseItemCallback("", "key_torture_chamber_1", "prison_1", "KeyOnDoor", true);
}
This call needs to be inside a function; propably OnStart().
Also, the closing brace in the following line must go.

Quote:void KeyOnDoor(string &in asItem, string &in asEntity)
...
void KeyOnDoor(string &in asItem, string &in asEntity)
You can't have two functions with the same name and the same parameters.

Btw.: If you set up a dev environment, the game will actually give you a rather helpful error message instead of just crashing.
(This post was last modified: 01-15-2011, 06:42 AM by Andross.)
01-15-2011, 06:34 AM
Find


Messages In This Thread
HPS script issue [SOLVED] - by Devil Dogs SF - 01-15-2011, 05:29 AM
RE: HPS script issue - by Andross - 01-15-2011, 06:34 AM
RE: HPS script issue - by Devil Dogs SF - 01-15-2011, 07:26 AM
RE: HPS script issue - by Andross - 01-15-2011, 07:38 AM
RE: HPS script issue - by Devil Dogs SF - 01-15-2011, 08:13 AM
RE: HPS script issue - by Seragath - 01-15-2011, 06:07 PM



Users browsing this thread: 1 Guest(s)