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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please Help me!
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: Please Help me!

open automaticly?
Well that goos like this
---
Make an ScriptArea in the editor. { when the player walks over, you can make stuff happen "scripted" }
---
This below must put in the .hps file.

AddEntityCollideCallback("Player", "YOURSCRIPTNAMEINEDITOR", "TYPEWHATEVERYOUWANT", false, 1);
---->
Player = This is whenever the player\enemy\or whatever touches the ScriptArea will activate stuff... THIS time is the PLAYER i asume...
YOURSCRIPTNAMEINEDITOR = This is the name of the ScriptArea in the editor { you may change it offcourse }
TYPEWHATEVERYOUWANT = Here you may type whatever you want for example dooropenplease
false = one time of more times .. so false = Unlimited TIMES , true = only one time.
1 = while entering or leaving an script area... I never use this stuff.. always on 1 with all my scripts.

------------

void TYPEWHATEVERYOUWANT(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("NAMEOFTHEDOORYOUWANTTOOPEN", true);
SetSwingDoorClosed("NAMEOFTHEDOORYOUWANTTOOPEN", false, true);
AddPropForce("NAMEOFTHEDOORYOUWANTTOOPEN", 0, 0, 5600, "world");
}
PS... this AddPropForce above you might need to change the values..
Cause i dont know witch way it need to open.....
So try change those 0, 0,5600 if its not working to
0,5600,0 or
5600,0,0
--> The 5600 is the FORCE to open it with... with some doors i think might be diffferent so ALSO may change it to lower or higher values, Just try some out! ps don't go over 50000... The door will fly into heavon.. ehhehee.
Or so on... you have to look for yourself how you want this to to be opend..
Hopefully it helps you a bit.
Btw here is a link for some good help for beginners and sometimes even for me :
http://frictionalgames.com/forum/thread-7085.html
PRESS ON THE SPOILER BELOW click to show
(This post was last modified: 12-10-2012, 04:38 PM by DnALANGE.)
12-10-2012, 04:32 PM
Find


Messages In This Thread
Please Help me! - by Sanyam - 12-10-2012, 04:08 PM
RE: Please Help me! - by DnALANGE - 12-10-2012, 04:32 PM
RE: Please Help me! - by Sanyam - 12-10-2012, 05:21 PM
RE: Please Help me! - by str4wberrypanic - 12-10-2012, 05:34 PM
RE: Please Help me! - by Sanyam - 12-10-2012, 05:55 PM
RE: Please Help me! - by str4wberrypanic - 12-10-2012, 06:13 PM
RE: Please Help me! - by Sanyam - 12-10-2012, 06:51 PM
RE: Please Help me! - by The chaser - 12-10-2012, 07:55 PM
RE: Please Help me! - by DnALANGE - 12-10-2012, 08:51 PM
RE: Please Help me! - by Sanyam - 12-11-2012, 07:16 PM
RE: Please Help me! - by DnALANGE - 12-11-2012, 07:23 PM
RE: Please Help me! - by The chaser - 12-11-2012, 10:27 PM
RE: Please Help me! - by DnALANGE - 12-12-2012, 12:44 AM
RE: Please Help me! - by crisosphinx - 12-12-2012, 12:48 AM
RE: Please Help me! - by Sanyam - 12-12-2012, 11:41 AM
RE: Please Help me! - by Sanyam - 12-15-2012, 04:35 PM



Users browsing this thread: 1 Guest(s)