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
Can anyone find the script error?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: Can anyone find the script error?

(09-15-2012, 08:45 PM)danimora2012 Wrote:
(09-15-2012, 08:25 PM)Wapez Wrote: It should be like this:

PHP Code: (Select All)
//////////////////////////////Run First Time Starting map
void OnStart()
{
SetEntityPlayerInteractCallback("key""Jump"true);
}

void Jump(string &in asEntitystring &in type)
{
SetEntityActive("bro_1"true);
}


////////////////////////////
// Run when leaving map
void OnLeave() 
Uuuuuh...that's exacly the same... Dodgy
No, it isn't. Check the SetEntityPlayerInteractCallback. You don't have that.

http://wiki.frictionalgames.com/hpl2/tutorials/start
http://wiki.frictionalgames.com/hpl2/tut...n_entities

The first link are the tutorials in the wiki. Please, before creating a thread asking something, check the wiki. The second link explains how to trigger a monster in an entity. Follow the instructions and all will be fine.

Also, here are the engine scripts. It says every single function:

http://wiki.frictionalgames.com/hpl2/amn..._functions

Please, development support is for things that you may not understand in the wiki. Use this section if you can't find your answer. We are always happy to help, but try to solve yourself your problems always that you can.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 09-15-2012, 09:08 PM by The chaser.)
09-15-2012, 08:52 PM
Find


Messages In This Thread
RE: Can anyone find the script error? - by Wapez - 09-15-2012, 08:25 PM
RE: Can anyone find the script error? - by The chaser - 09-15-2012, 08:52 PM



Users browsing this thread: 1 Guest(s)