Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Make player look at entity?
Post: RE: Make player look at entity?
Code:void StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum);
........ You are missing the third parameter "asTextCat", add your TextCate... |
|
Inurias |
Development Support
|
15 |
12,944 |
02-03-2012, 08:16 PM |
|
|
Thread: Make player look at entity?
Post: RE: Make player look at entity?
(02-03-2012, 07:16 PM)Datguy5 Wrote: ////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "And", "Locked", "KeyOnDoor", true);
SetEntityCallbackFunc("And",... |
|
Inurias |
Development Support
|
15 |
12,944 |
02-03-2012, 07:30 PM |
|
|
Thread: Make player look at entity?
Post: RE: Make player look at entity?
(02-03-2012, 06:59 PM)Datguy5 Wrote: Now it says expected expression value.
Wtf?!Then post the line where the error occurs at etc.
I can't be arsed to look through the whole thing now to be honest.
|
|
Inurias |
Development Support
|
15 |
12,944 |
02-03-2012, 07:05 PM |
|
|
Thread: Make player look at entity?
Post: RE: Make player look at entity?
By taking a short look I noticed two things:
fix:
Code:AddTimer("", 2, "CreditStart);to:
Code:AddTimer("", 2, "CreditStart");
And add a third parameter to this:
Code:StartCredits("ending_daniel.ogg",... |
|
Inurias |
Development Support
|
15 |
12,944 |
02-03-2012, 06:12 PM |
|
|
Thread: Need help to make a lever puzzle
Post: RE: Need help to make a lever puzzle
(01-15-2012, 03:13 PM)Statyk Wrote: (01-15-2012, 11:56 AM)Your Computer Wrote: Here's a more efficient way of doing it (though entirely untested).
PHP Code:const string[] lever_names&n... |
|
Inurias |
Development Support
|
26 |
33,085 |
01-16-2012, 09:11 PM |
|
|
Thread: Expected crap
Post: RE: Expected crap
(01-12-2012, 09:40 PM)i3670 Wrote: Thanks it works now.You're Welcome :3
-Inurias
|
|
Inurias |
Development Support
|
7 |
6,193 |
01-12-2012, 09:42 PM |
|
|
Thread: Expected crap
Post: RE: Expected crap
You are missing a "}" here:
Code:void func5()
{
if(GetLocalVarInt("Var1") == 4)
{
SetEntityActive("castl... |
|
Inurias |
Development Support
|
7 |
6,193 |
01-12-2012, 09:34 PM |
|
|
Thread: Expected crap
Post: RE: Expected crap
I tried using it and it worked, your problem is somewhere else in your script file.
|
|
Inurias |
Development Support
|
7 |
6,193 |
01-12-2012, 09:26 PM |
|
|
Thread: Expected crap
Post: RE: Expected crap
One "}" at the end of your script seems to be one error, remove it.
May cause errors too:
change:
Code:GiveHint ("", "Descriptions", "Hint_4", 4.0f);to:
Code:GiveHint("", "Descriptions", "Hint_4", 4.... |
|
Inurias |
Development Support
|
7 |
6,193 |
01-12-2012, 09:07 PM |
|
|
Thread: Puzzle
Post: RE: Puzzle
(01-12-2012, 06:54 PM)flamez3 Wrote: I'm fine with helping him, but it would make it easier if he could write out proper sentences, but it's probably because he's from a different country so you can... |
|
Inurias |
Development Support
|
8 |
7,663 |
01-12-2012, 07:05 PM |
|
|
Thread: Puzzle
Post: RE: Puzzle
(01-12-2012, 06:39 PM)jessehmusic Wrote: (01-12-2012, 06:37 PM)Inurias Wrote: Off-topic:
I've read some of your threads (probably a few out of thousands), you had a lot of problems (most of the t... |
|
Inurias |
Development Support
|
8 |
7,663 |
01-12-2012, 06:45 PM |
|
|
Thread: Puzzle
Post: RE: Puzzle
Off-topic:
I've read some of your threads (probably a few out of thousands), you had a lot of problems (most of the time about scripting) and it should be okay, but after some time it got kinda annoyi... |
|
Inurias |
Development Support
|
8 |
7,663 |
01-12-2012, 06:37 PM |
|
|
Thread: Switch a light on when you enter an area?
Post: RE: Switch a light on when you enter an area?
Detect Player entering ScriptArea:
Code:void AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alSta... |
|
Inurias |
Development Support
|
4 |
5,143 |
01-12-2012, 05:42 PM |
|
|
Thread: Sounds...
Post: RE: Sounds...
Like Tanshaydar already said, these sounds are using different configurations.
pickaxe_hit:
Code:<PROPERTIES Volume="1" MinDistance="1" MaxDistance="10" Random="1" Interval="0" FadeEnd="False" Fad... |
|
Inurias |
Custom Stories, TCs & Mods - Development
|
6 |
6,186 |
01-12-2012, 04:04 PM |
|
|
Thread: Cell_Breakable_Wall isn't breaking!
Post: RE: Cell_Breakable_Wall isn't breaking!
You probably need to make a script again :3
Hint:
You will most likely need: Code:void SetPropHealth(string& asName, float afHealth);
There are probably more ways to detect the chair touching the... |
|
Inurias |
Development Support
|
7 |
7,268 |
01-09-2012, 08:27 PM |
|
|
Thread: How do I make a ladder teleport you to next level?
Post: RE: How do I make a ladder teleport you to next le...
|
Inurias |
Development Support
|
5 |
5,603 |
01-09-2012, 07:58 PM |
|
|
Thread: How do I make a ladder teleport you to next level?
Post: RE: How do I make a ladder teleport you to next le...
Okay, but you should make sure to read through the little script and make sure that you understand what's going on. I hope that you'll learn from it.
Code:void OnStart()
{
Add... |
|
Inurias |
Development Support
|
5 |
5,603 |
01-09-2012, 07:53 PM |
|
|
Thread: How do I make a ladder teleport you to next level?
Post: RE: How do I make a ladder teleport you to next le...
(I am assuming that you already created a working script file for the corresponding map. If this is not the case, google up the basics about scripting with hpl2, also, this link could help you a lot: ... |
|
Inurias |
Development Support
|
5 |
5,603 |
01-09-2012, 07:45 PM |
|
|
Thread: Why wont this script work?
Post: RE: Why wont this script work?
On your first use of "SetEntityActive" in your "HolyJesus" function you are missing the second parameter.
Also, I found another little flaw in your script, but I'm not sure if it is important:
Code:A... |
|
Inurias |
Development Support
|
4 |
4,120 |
01-09-2012, 07:25 PM |
|
|
Thread: My door won't open!
Post: RE: My door won't open!
"SetSwingDoorLocked" seems to take three arguments:
Code:void SetSwingDoorLocked(string& asName, bool abLocked, bool abEffects);
Try to use
Code:SetSwingDoorLocked("Door_1", false, false); |
|
Inurias |
Development Support
|
10 |
8,942 |
01-06-2012, 12:09 AM |