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
How make this script? (SOLVED)
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#19
RE: How make this script?

I know you said you checked it about 5 times, but:

You mentioned that your Area (in the Level Editor) is called "Skrypt 1".

Abihishi Wrote:In game my script area is Skrypt 1, but this not work.

You also have something like this in your .hps file:
PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""ScriptArea""Scrypt1"true1);


This in plain language means that if:
Player touches an area called: ScriptArea, it will do Scrypt1 function.

Are you really really sure your area is "ScriptArea" and not "Skrypt 1"?

Also... I would advise you to rename the in Level Editor script Area to something more descriptive, like "CorridorArea".

Changing the Area's name:
Spoiler below!
  • Rename the Area in your Level Editor
    Make sure the name doesn't use special character and I would even stay away from spaces.
  • Correct the callback to reflect changes
    Let's say you rename the area to "MyScriptAreaInLevelEditor" (without the quotation marks!), the script should then look like this:
    PHP Code: (Select All)
    void OnStart()
    {
        
    AddEntityCollideCallback("Player""MyScriptAreaInLevelEditor""Scrypt1"true1);
    }

    void Scrypt1(string &in asParentstring &in asChildint alState)
    {
        
    SetMessage("MessageCategory""MessageEntry"0);



If it still doesn't work:
- Post your .hps content in it's FULL length and it's current state.
- Add the names of all script Areas that you use in your Level Editor
- Specify what it is supposed to do and what it's doing

I'm really scraping the bottom of the barrel here.
(This post was last modified: 02-16-2016, 06:34 PM by Spelos.)
02-16-2016, 06:15 PM
Find


Messages In This Thread
How make this script? (SOLVED) - by Abihishi - 02-14-2016, 06:11 PM
RE: How make this script? - by Mudbill - 02-14-2016, 07:41 PM
RE: How make this script? - by Abihishi - 02-14-2016, 07:57 PM
RE: How make this script? - by Romulator - 02-14-2016, 08:32 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:34 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:47 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:51 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:54 PM
RE: How make this script? - by Mudbill - 02-14-2016, 11:53 PM
RE: How make this script? - by Abihishi - 02-15-2016, 03:12 PM
RE: How make this script? - by Daemian - 02-16-2016, 12:46 AM
RE: How make this script? - by Spelos - 02-16-2016, 08:48 AM
RE: How make this script? - by Abihishi - 02-16-2016, 03:17 PM
RE: How make this script? - by Mudbill - 02-16-2016, 03:26 PM
RE: How make this script? - by Romulator - 02-16-2016, 03:55 PM
RE: How make this script? - by Abihishi - 02-16-2016, 04:09 PM
RE: How make this script? - by Spelos - 02-16-2016, 05:07 PM
RE: How make this script? - by Abihishi - 02-16-2016, 05:38 PM
RE: How make this script? - by Spelos - 02-16-2016, 06:15 PM
RE: How make this script? - by Abihishi - 02-16-2016, 07:44 PM
RE: How make this script? - by Mudbill - 02-16-2016, 10:09 PM



Users browsing this thread: 1 Guest(s)