Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Can't get HPL Level editor!
Post: RE: Can't get HPL Level editor!

All downloads are listed here: http://wiki.frictionalgames.com/hpl2/tools/start
Equil Development Support 1 2,846 03-18-2012, 11:26 AM
    Thread: Throw an exploding object?
Post: RE: Throw an exploding object?

What if you made a collide area the size of the entire map and had.. Code:void OnStart() { AddEntityCollideCallback("GRENADE", "AreaSizeOfLevel", "ExplosionCheck", false, 0); } void ExplosionCheck...
Equil Development Support 24 20,859 03-18-2012, 07:19 AM
    Thread: Piano scare. Scripting help
Post: RE: Script Help!

Code:void pianostop(string &in asParent, string &in asChild, int alState) void GetStartPoint(string &in asParent, string &in asChild, int alState) { AddQuest("investigate","Investi...
Equil Development Support 4 4,567 03-18-2012, 06:00 AM
    Thread: Urgently need help, loop monster path.
Post: RE: Urgently need help, loop monster path.

Code:    for(int i=0;i<5;i++) {         if(i == 5) {             i = 0;  ...
Equil Development Support 2 2,718 03-17-2012, 12:15 PM
    Thread: HPS error (level editing)
Post: RE: HPS error (level editing)

I assume you've ticked "Locked" on the door in the level editor then? If so, try putting SetSwingDoorLocked("door_1", true, true); in OnStart()
Equil Development Support 13 9,284 03-17-2012, 05:10 AM
    Thread: HPS error (level editing)
Post: RE: HPS error (level editing)

Try having the "UseKeyOnDoor" function outside of OnEnter. Like this: Code:void OnStart() { if(ScriptDebugOn()) { GiveItemFromFile("lantern", "lantern.ent"); SetPlayerLampOil(100.0f); for(int i = 0;...
Equil Development Support 13 9,284 03-17-2012, 01:59 AM
    Thread: Any function for getting if a cabinet's closed?
Post: RE: Any function for getting if a cabinet's closed...

I just tested this with this script: Code:void OnStart() {     SetEntityPlayerInteractCallback("cabinet_nice_1", "Cabinet", false); } void Cabinet(string &in asEntity) { ...
Equil Development Support 4 3,638 03-16-2012, 05:16 PM
    Thread: CreateParticleSystem not working
Post: RE: CreateParticleSystem not working

It happens! :P Can't believe I didn't notice that either x.x
Equil Development Support 5 4,538 03-16-2012, 09:48 AM
    Thread: CreateParticleSystem not working
Post: RE: CreateParticleSystem not working

Very odd.. I just did some testing on my map with that. It seems to appear fine for me. Here's the code: Code:void OnStart() {          AddTimer("", 5.0f, "Wh...
Equil Development Support 5 4,538 03-16-2012, 09:43 AM
    Thread: CreateParticleSystem not working
Post: RE: CreateParticleSystem not working

trying putting .ps in CreateParticleSystemAtEntity, i.e CreateParticleSystemAtEntity("", "ps_dust_whirl", "AreaWhirl", false); You're missing the .ps there, try putting "ps_dust_whirl.ps" .
Equil Development Support 5 4,538 03-16-2012, 09:03 AM
    Thread: Please Help!
Post: RE: Please Help!

Um, could you explain exactly what you're trying to achieve with this script? Unlock a door then start a quest?
Equil Development Support 8 6,411 03-15-2012, 07:16 AM
    Thread: "SetEntityActive" Help.
Post: RE: "SetEntityActive" Help.

(03-14-2012, 10:05 AM)Your Computer Wrote: (03-14-2012, 08:14 AM)Equil Wrote: You're using the wrong function to call that function you'd use for oil. SetEntityPlayerInteractCallback is more for w...
Equil Development Support 15 12,832 03-14-2012, 10:25 AM
    Thread: Changing "Look" or "Health" of a door
Post: RE: Changing "Look" or "Health" of a door

Yeeeep, new it was something obvious -.- Thank you !
Equil Development Support 2 2,549 03-14-2012, 10:19 AM
    Thread: "SetEntityActive" Help.
Post: RE: "SetEntityActive" Help.

You're using the wrong function to call that function you'd use for oil. SetEntityPlayerInteractCallback is more for when the player interacts with entities like Doors, Chairs etc. For items, use SetE...
Equil Development Support 15 12,832 03-14-2012, 08:14 AM
    Thread: Changing "Look" or "Health" of a door
Post: Changing "Look" or "Health" of a door

So the issue I'm having here is that I can't find any function that changes the texture the door is using(in this case just a default mansion door). The scare I want to happen here is the door to be...
Equil Development Support 2 2,549 03-14-2012, 07:54 AM
    Thread: can't stop looping sound!
Post: RE: can't stop looping sound!

An alternative way to timers for this particular sound would be to use "scare_wall_scratch_single.snt" instead, or edit the .snt file and change looping to false.
Equil Custom Stories, TCs & Mods 4 4,091 01-20-2011, 07:25 AM
    Thread: Making enemys smart enough to open doors?
Post: RE: Making enemys smart enough to open doors?

I have another question. Is it possible to make monsters be able to clip through entities? Sure this might be immersion breaking.. but I have a friend who just loves to hide up on bookshelves to escap...
Equil Custom Stories, TCs & Mods 17 15,058 01-20-2011, 04:18 AM
    Thread: Some Questions - scripting
Post: RE: Some Questions - scripting

2. An alternative to using a sign area would be to set a LookAt callback in the script, then have the called function use the SetMessage function. 3. For momentos, you'll need to use the AddQuest fu...
Equil Custom Stories, TCs & Mods 7 5,765 01-20-2011, 03:57 AM
    Thread: I Just Don't Understand
Post: RE: I Just Don't Understand

You can also try using AddPropImpulse instead of AddPropForce, I find Impulse easier to use for doors.
Equil Custom Stories, TCs & Mods 10 8,527 01-19-2011, 07:09 AM
    Thread: this could be interesting
Post: RE: this could be interesting

Then you'll just need to keep experimenting with the values.
Equil Custom Stories, TCs & Mods 4 3,887 01-19-2011, 03:52 AM