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
Help With Scripting Please :D
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Help With Scripting Please :D

Let me try to explane thing by thing.

1:I just wanted to make it so pass in a certain Area it De-Activates Two Particle systems.
Here is how that goes:
Make a scriptarea in your leveleditor called : DeleteParticleHallway
Then open your HPS ( script ) add this code OnStart()
PHP Code: (Select All)
AddEntityCollideCallback("Player""DeleteParticleHallway ""JustRemoveParticlesHallway"true1); 
Then make a scriptfunction like this
PHP Code: (Select All)
void JustRemoveParticlesHallway(string &in asParentstring &in asChildint alState)
{
DestroyParticleSystem("ParticleSystem_190");//The name of a particle in your leveleditor
DestroyParticleSystem("ParticleSystem_191");//The name of the seconth particle in your leveleditor
That should do the trick for destroying the particles

---
For the next thing for the drillparts you need to have a file called INVENTORY.HPS
You can find this file in Amnesia\Redist\maps\main (inventory.hps)
Copy that in YOUR maps folder of YOUR story.
That should do the trick for the 3 pieces.
Altho you will need to RENAME the pieces witch are named in the INVENTORY.HPS.
Here is how to add the scripts:
THESE below are the scripts you will find in the Inventory.hps() You do NOT need to place this in YOUR scriptfile, the Inventory will find these pieces!
PHP Code: (Select All)
    AddCombineCallback("drill_1_2""hand_drill_part01","hand_drill_part02""CombineDrill"false);

    
AddCombineCallback("drill_1_3""hand_drill_part01""hand_drill_part03""CombineDrill"false);

    
AddCombineCallback("drill_2_3""hand_drill_part02""hand_drill_part03""CombineDrill"false); 
Then add the names -> hand_drill_part01 --- hand_drill_part02 --- hand_drill_part03 ON the 3 items (seperate offcourse) in your leveleditor.
---
What do you mean with this: then I also have a hidden key???
(This post was last modified: 07-15-2014, 01:17 PM by DnALANGE.)
07-15-2014, 12:58 PM
Find


Messages In This Thread
Help With Scripting Please :D - by Aglowglint11 - 07-15-2014, 12:49 PM
RE: Help With Scripting Please :D - by DnALANGE - 07-15-2014, 12:58 PM
RE: Help With Scripting Please :D - by DnALANGE - 07-15-2014, 01:23 PM
RE: Help With Scripting Please :D - by DnALANGE - 07-15-2014, 01:27 PM
RE: Help With Scripting Please :D - by DnALANGE - 07-15-2014, 01:29 PM
RE: Help With Scripting Please :D - by DnALANGE - 07-15-2014, 01:40 PM
RE: Help With Scripting Please :D - by DnALANGE - 07-15-2014, 01:44 PM



Users browsing this thread: 1 Guest(s)