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?
danimora2012 Offline
Junior Member

Posts: 47
Threads: 18
Joined: Apr 2012
Reputation: 0
#6
RE: Can anyone find the script error?

(09-15-2012, 08:52 PM)The chaser Wrote:
(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.
Alright...now i have this but still doesn't work...


//////////////////////////////Run First Time Starting map
void OnStart()
{
SetEntityPlayerInteractCallback("Player", "bro_1", "true");
}

void Jump(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("bro_1", true);
AddPropForce("bro_1", 0, 0, -9000, "world");
PlaySoundAtEntity("", "ahhh.snt", "Player", 0, false);
}

////////////////////////////// Run when leaving map
void OnLeave()
(This post was last modified: 09-15-2012, 09:44 PM by danimora2012.)
09-15-2012, 09:28 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 danimora2012 - 09-15-2012, 09:28 PM



Users browsing this thread: 1 Guest(s)