Beatlebattle
Junior Member
Posts: 27
Threads: 5
Joined: Jan 2011
Reputation:
0
|
Help with scripting
Hello FG users.
I'm new to the forum and the editor for amnesia dark descent as well. I've done some basic scripting such as closing doors and monster spawning. I find it very difficult to try new things though. For instance I can't get my triggers to turn on when touching the actual triggerbox. Another problem is letting monsters spawn when I hit a trigger instead of picking something up which works perfectly already. I made 5 maps so far for my campaign and I wan't to make it look more proffesional and detailed. The wiki gives me alot of help but I still find it very complicated. I've tried to copy some scripts from the original campaign but it gives me errors like No matching signatures to 'TimerRandomLook(string@&)' and so on. I hope I can get some tips so I can finish my story and upload it for the forum users to test it.
Also the maps with scripts which worked before start to give me errors too. It gives me the same error all the time:
main (9,1 : ERR : Expected ',' or ';'
Here's the script:
void Onstart()
void PickEnemy(string &in asEntity, string &in asType)
{
SetEntityActive("servant_brute_1", true);
}
I hope some one can help me with this. Thanks in advance.
(This post was last modified: 01-24-2011, 01:38 AM by Beatlebattle.)
|
|
01-23-2011, 07:14 PM |
|
Vradcly
Member
Posts: 100
Threads: 6
Joined: Jan 2011
Reputation:
0
|
RE: Help with scripting
what kind of function is PickEnemy? a collidecallback? an item pickup?
|
|
01-24-2011, 11:11 AM |
|
Beatlebattle
Junior Member
Posts: 27
Threads: 5
Joined: Jan 2011
Reputation:
0
|
RE: Help with scripting
Never mind the whole problem, got it fixed. Just me being stupid with scripting.
(This post was last modified: 01-24-2011, 07:48 PM by Beatlebattle.)
|
|
01-24-2011, 06:56 PM |
|
Vradcly
Member
Posts: 100
Threads: 6
Joined: Jan 2011
Reputation:
0
|
RE: Help with scripting
Good thing you solved it
|
|
01-25-2011, 11:28 PM |
|
Tottel
Senior Member
Posts: 307
Threads: 9
Joined: Nov 2010
Reputation:
0
|
RE: Help with scripting
To help other people looking at the thread and having the same issue (you never know), don't forget the curly brackets:
void Onstart()
{
}
...
|
|
01-25-2011, 11:32 PM |
|