Frictional Games Forum (read-only)

Full Version: ATDD-Scripting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(02-10-2014, 02:04 AM)Mudbill Wrote: [ -> ]
(02-09-2014, 08:41 PM)Wapez Wrote: [ -> ]Yes, and when you copied that and put it in your map you need to write this below it:

void OnEnter();
{

}

void OnLeave();
{

}

It's a simple wake up function but it works. Personally I would use a switch loop for best effect.

I'm guessing the semi-colons were just typos.

@OP
They are not supposed to be there though. These are also not required, but if you want to run scripts as the player is re-entering or leaving the level, use those. OnStart is only ran the first time the player loads the map, in case you didn't know.

Oops! My bad, of course they shouldn't be there. Blush
(02-10-2014, 12:32 PM)MasterPig Wrote: [ -> ]Yes but i just dont get how to write it in there correctly... Anyone got a tutorial i can watch, to see how to do it?

Ok, so make a text file called <mapname>.txt (<mapname> being your map's name) with notepad or preferably notepad++ and then save it as a .hps.

Then you just copy & paste all of that code in there and save it.

So yeah, that's it. OnEnter() and OnLeave() aren't necessary.
I copied it in there exactly like that but no wake up effekt... only " cant load" errors ....
What is your script and what are the errors? We can't help if you don't describe the problem.
Hm yes of course you cant Tongue

Well it seems im doing it wrong. Never did a wake up or any other new script than just spawning a monster or letting it patrol.
I will try to copy it in right. Cant be that hard. But on my phone, its hard to interact. No internet on my computer Undecided
Use nepisis's beginning script. I analyze others work to see how they did it.
Pages: 1 2