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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with scripting
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#1
Question  problems with scripting

Hey guys...

I working on a full conversion for myself to practice and want to use this thread for any questions to scripting I had.

The first thing, I want to know is:

I want to create an event for which the player breaks down, looking at an enemy, and after a few seconds, the game changed the map.
And now my question:

How did I do that / what script must I write? Huh

I also want to say, that I am german, and my english could sometimes been better... Big Grin don't you think?





08-11-2011, 11:51 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: problems with scripting

You may want to look at the following functions: GiveSanityDamage(); SetEntityActive(); ChangeMap(); AddTimer(); StartPlayerLookAt(); StopPlayerLookAt().

Their definitions can be found here:
http://wiki.frictionalgames.com/hpl2/amn..._functions

Tutorials: From Noob to Pro
(This post was last modified: 08-11-2011, 03:11 PM by Your Computer.)
08-11-2011, 03:07 PM
Website Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#3
RE: problems with scripting

@Your Computer
Thanks Smile

Interesting page. I will try to find a solution!





08-11-2011, 04:48 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: problems with scripting

Erm, good thing you find it interested, because wiki contains many tutorials and source to modders.

08-11-2011, 06:11 PM
Website Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#5
RE: problems with scripting

Blush
I think you hadn't understand me right, Tanshaydar.
I already known this wiki, but I hadn't seen this script-function page in it.
Interesting to know Big Grin





08-11-2011, 06:41 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: problems with scripting

Oh, my bad, sorry.
Then you found the tutorials with videos too? Because it's a great resource.

(This post was last modified: 08-11-2011, 06:49 PM by Tanshaydar.)
08-11-2011, 06:48 PM
Website Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#7
RE: problems with scripting

(08-11-2011, 06:48 PM)Tanshaydar Wrote: Oh, my bad, sorry.
Then you found the tutorials with videos too? Because it's a great resource.

ha,ha always a wiki supporter! SmileBig GrinTongueWink
08-11-2011, 10:23 PM
Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#8
RE: problems with scripting

Yes, I have already seen the videos and most of them has helped me a lot, to set my first steps in the editors.
But scripting is sometimes very tricky for me. Huh
So often my scripts doesn't work and I found very, very rare the mistake, by myself. Confused

The wiki-page doesn't helped me really Blush .
I have so much to learn about scripting... I hoped, you guys could helped me there and don't worry...
...you will see my custom storys as soon as possible... Big Grin

...some of them just wait for the right script.





08-12-2011, 08:20 AM
Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#9
RE: problems with scripting

Well you can always ask at the forums. Also search them because there are plenty of other ready scripts and help topics in there.
08-12-2011, 09:35 AM
Find
Brute Offline
Member

Posts: 197
Threads: 10
Joined: Aug 2011
Reputation: 3
#10
RE: problems with scripting

That's good to know!

I already has searched for scripts in the forum, put them in my game, and most of them has worked.
But often they failed by me and I don't know why. For example: I had already problem by making buttons and levers. Confused
Sometimes they freaked me so out, that I must play the game and hunt Daniel, to calm down Big Grin.

But at first I need this script:
Quote:I want to create an event for which the player breaks down, looking at an enemy, and after a few seconds, the game changed the map.






08-12-2011, 09:53 AM
Find




Users browsing this thread: 1 Guest(s)