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
#9
RE: Please Help me!

Ok here is your script... Just COPY PASTE :
THIS AT Void OnONTER() --->
{
AddEntityCollideCallback("Player", "YOURSCRIPTNAMEINEDITOR", "TYPEWHATEVERYOUWANT", false, 1);
}
This below In your scipt
--->

void TYPEWHATEVERYOUWANT(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("NAMEOFTHEDOORYOUWANTTOOPEN", true);
SetSwingDoorClosed("NAMEOFTHEDOORYOUWANTTOOPEN", false, true);
AddPropForce("NAMEOFTHEDOORYOUWANTTOOPEN", 0, 0, 5600, "world");

SetEnemyDisableTriggers("YOURENEMYNAME", true);

StartPlayerLookAt("NAME OF THE DOOR", 6, 6, "");

AddTimer("", "5.0f", "TimerStopLooking");

GiveSanityDamage(10.0f, true);
}

void TimerStopLooking(string&in asTimer)
{
StopPlayerLookAt();
FadeEnemyToSmoke("YOURENEMYNAME", true);
}
----------------------------------------------------------------
REPLACE THE ITEMS\ENEYMY names to your things in the editor!
FadeEnemyToSmoke = will DEACTIVATE your enemy, this time in 5 seconds ---> { like it fades into smoke } Or just deactivate by this script:
SetEntityActive("NAME OF THE ENEMY", false); --> false means it will be DE-activated
,
AddTimer("", "5.0f", "TimerStopLooking"); ---> Means after 5 seconds "TimerStopLooking" will be activated.
The 5.0f = 5 seconds ,
The "TimerStopLooking" is the scripted timername, you may name whatever you want to.

Grunt is walking, but can't see and attack player even if he saw him. How to realise that idea?
--? What do you mean here???
I think i fixed that in the script above.. let us know here if it worked.
(This post was last modified: 12-10-2012, 09:05 PM by DnALANGE.)
12-10-2012, 08:51 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)