My grunt hallucination is turned completely around and isn't running towards me - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: My grunt hallucination is turned completely around and isn't running towards me (/thread-18559.html) |
RE: My grunt hallucination is turned completely around and isn't running towards me - ironman0001 - 10-01-2012 (10-01-2012, 07:53 PM)ironman0001 Wrote:And one more thing! How do i make a player crouch as soon as the game starts?(10-01-2012, 07:43 PM)Nemet Robert Wrote: With a script?And is there a way to make an enemy just stand without attacking? RE: My grunt hallucination is turned completely around and isn't running towards me - Robby - 10-01-2012 void SetPlayerCrouching(bool abCrouch); Forces the player to crouch. RE: My grunt hallucination is turned completely around and isn't running towards me - KingWolf - 10-01-2012 You sure know how to help peeps, Robby. RE: My grunt hallucination is turned completely around and isn't running towards me - ironman0001 - 10-01-2012 errr 2 more questions xD How do i make it where the monster doesn't make any noise and how do i make it where the screen goes black and the person teleports somewhere? RE: My grunt hallucination is turned completely around and isn't running towards me - Robby - 10-01-2012 For the 1st one, you'll have to edit the entity. Easier alternative is: Use FadeGlobalSoundVolume(0, 0); Then reset it back to 1 after the monster spawned. Use a timer for that. 2nd one: Use the "FadeOut(1);" function, then use a timer that triggers at least 1 second later, which will use the "Teleport("StartPosName");" function, and also use the "FadeIn(1);" function too. Don't include the quotes. RE: My grunt hallucination is turned completely around and isn't running towards me - ironman0001 - 10-01-2012 (10-01-2012, 08:22 PM)Nemet Robert Wrote: For the 1st one, you'll have to edit the entity. Easier alternative is:How do i use timers? RE: My grunt hallucination is turned completely around and isn't running towards me - Robby - 10-01-2012 AddTimer("", 1.0f, "CallbackName"); Syntax: void CallbackName(string &in asTimer) { //Script functions here } Replace CallbackName with whatever you want, but make sure both names match. You can also replace 1 with the amount of second you want. And in //Script functions here. Well you can guess that. RE: My grunt hallucination is turned completely around and isn't running towards me - ironman0001 - 10-01-2012 I'm trying to test out the script by having the guy look at one bottle and then another bottle! But he only looks at the first bottle! But he doesn't look at the second one! Here is the script void OnStart() { AddEntityCollideCallback("Player", "Area_8", "start", true, 1); AddEntityCollideCallback("Player", "Area_8", "start1", true, 1); AddEntityCollideCallback("Player", "Area_8", "start2", true, 1); } void start(string &in asParent, string &in asChild, int alState) { StartPlayerLookAt("wine01_2", 30, 50, ""); AddTimer("fadein1", 1, "intro"); } void intro(string &in asTimer) { StopPlayerLookAt(); RemoveTimer("fadein1"); } void start1(string &in asTimer) { AddTimer("start_t2", 1, "start2"); } void start2(string &in asTimer) { RemoveTimer("start_t2"); StartPlayerLookAt("wine01_23", 30, 50, ""); } RE: My grunt hallucination is turned completely around and isn't running towards me - ironman0001 - 10-01-2012 (10-01-2012, 09:44 PM)ironman0001 Wrote: I'm trying to test out the script by having the guy look at one bottle and then another bottle! But he only looks at the first bottle! But he doesn't look at the second one! Here is the scriptHello??? RE: My grunt hallucination is turned completely around and isn't running towards me - Statyk - 10-01-2012 Code: void OnStart() |