Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ATDD-Scripting
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#11
RE: ATDD-Scripting

(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

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
02-10-2014, 05:58 PM
Find
GrAVit Offline
Senior Member

Posts: 580
Threads: 15
Joined: Oct 2011
Reputation: 22
#12
RE: ATDD-Scripting

(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.

(This post was last modified: 02-12-2014, 10:12 AM by GrAVit.)
02-12-2014, 10:10 AM
Find
LordOfDragons Offline
Senior Member

Posts: 501
Threads: 14
Joined: Aug 2013
Reputation: 13
#13
RE: ATDD-Scripting

I copied it in there exactly like that but no wake up effekt... only " cant load" errors ....

The question that will never be answered:
SOMA WHY ARE YOU SO BEAUTIFUL? ;_;
03-03-2014, 07:59 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#14
RE: ATDD-Scripting

What is your script and what are the errors? We can't help if you don't describe the problem.

03-03-2014, 09:25 PM
Find
LordOfDragons Offline
Senior Member

Posts: 501
Threads: 14
Joined: Aug 2013
Reputation: 13
#15
RE: ATDD-Scripting

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

The question that will never be answered:
SOMA WHY ARE YOU SO BEAUTIFUL? ;_;
03-04-2014, 12:33 AM
Find
Deadon Offline
Member

Posts: 64
Threads: 5
Joined: Feb 2014
Reputation: 1
#16
RE: ATDD-Scripting

Use nepisis's beginning script. I analyze others work to see how they did it.

2 Mappers are definitely better than one.
03-04-2014, 02:12 AM
Find




Users browsing this thread: 1 Guest(s)