Script fail - 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: Script fail (/thread-9543.html) Pages:
1
2
|
RE: Script fail - Juby - 08-01-2011 You need to have an asType of "Collide" to call a collide function and an asType of "Timer" to call a timer function; the basic reasoning to why it will not work right now is because there isn't a defined asType. So, it should be Code: void OnStart() RE: Script fail - Dizturbed - 08-01-2011 Nope, you dont. RE: Script fail - Angerpull - 08-02-2011 I see nothing wrong with the code, it must be the names. Make sure everything is named correctly. Also what I like to do when I am scripting is adding double space between functions, it keeps it more organized and easier to read. Like this. { AddEntityCollideCallback(AUSDUIDIAUSG blab blah); } void blah(blah void and all the ponies had sex); { My function is potato. } Makes it better to read. Or do w/e you want. |