![]() |
Something weird is happening with my script. - 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: Something weird is happening with my script. (/thread-21999.html) |
Something weird is happening with my script. - The chaser - 07-02-2013 I was making a final script for a level of mine, where you have to hit a wall with a sledge to destroy it, so you can go to the other side. However, when I hit the area with the sledge, nothing happens. Code: void OnStart() The curious thing is that if I try exactly the same script with the exact names in another map, it works... Any clue of this? RE: Something weird is happening with my script. - Adrianis - 07-02-2013 So does nothing at all from that function work, as in, there's no sound playing & no particles showing? And there is no error? RE: Something weird is happening with my script. - Wapez - 07-02-2013
RE: Something weird is happening with my script. - The chaser - 07-02-2013 Well, now that I realize, I haven't told much from the necessary: -There is no map_cache -The names are okay -I tried the EXACT script in another map, with the SAME names and it worked -It doesn't give any kind of error, it just doesn't work. Well, I'll just send the files to Wapez, to see if he can fix it. RE: Something weird is happening with my script. - 7heDubz - 07-03-2013 (07-02-2013, 02:24 PM)The chaser Wrote: Well, now that I realize, I haven't told much from the necessary: in the script put in a debug message and then try to do it in the unworking map again. do you get the debug message? RE: Something weird is happening with my script. - Daemian - 07-03-2013 This happened to me once, but i don't remember what was the problem right now. I think i had the area disabled. You should check that. And your script is not long, why don't you just make it again from scratch? RE: Something weird is happening with my script. - The chaser - 07-03-2013 Weird, apparently it breaks if I put "Player" instead "Sledge_1"... I will have to search a similar item to make the effect ![]() |