afR = red amount
afG = green amount
afB = blue amount
afA = alpha amount
afTime = time in seconds of change (I'm guessing set to 0 in your case, as the pointlights represents the candles)
the -1.0f means that the pointlights should keep their previous radius.
What you do now is go into the mapeditor - have all lights active.
Then check their color R,G,B and A. Copy these numbers (amount of R,G,B and A) into the script.
Then back into the mapeditor and set all of the pointlights R,G,B and A to 0. Thus they will not project any light/color until told to by the script.
I tried them both and neither of them work. Lol im sure that just the candles will be fine for the time being. Thanks for the help
Looking for a creative way of implementing a carraige ride. I am thinking to build a small room (the interior of the carriage, with a view to the outside of the room, add sound fx, and make the room move with the player inside. Not sure if this is feasible with scripting, can you make a room slowly move as if it was a carriage. Any ideas on alternatives?
Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
(05-13-2011, 05:21 AM)Selyp Wrote: Looking for a creative way of implementing a carraige ride. I am thinking to build a small room (the interior of the carriage, with a view to the outside of the room, add sound fx, and make the room move with the player inside. Not sure if this is feasible with scripting, can you make a room slowly move as if it was a carriage. Any ideas on alternatives?
The Village custom story seems to do it pretty good.
Look at the elevator in Amnesia and see how they moved the wall instead of the actual elevator.
So i havent completely grasped the whole "if" command thingy and I wonder if you could either describe it (know it might be tiresome) or just link to a tutorial that makes sence.
Also how do i get a door to swing or bang open?
[WIP] Recidivus
(This post was last modified: 05-14-2011, 08:33 AM by Greven.)
So i havent completely grasped the whole "if" command thingy and I wonder if you could either describe it (know it might be tiresome) or just link to a tutorial that makes sence.
Also how do i get a door to swing or bang open?
An "if" statement is when you ask the game if something is compaired to something else.
When you want to use it, you must have 3 things: An item or thing that you are using, a value or another thing, and a reason why you are using it.
if (x > y) // Asks if 1 is greater than 2. Since it's not true, it moves on.
{
x--; // This takes 1 away from x. (x = 2, now it is x = 1)
}
else if (x < y) // Asks if 1 is less than 2. It's true so it does this making y = 1.
{
y--; // Takes 1 away from y.
}
else if (x == y) // Since they both equal 1, it does this. Making z = 2.
{
int z = x + y;
}
This shows how it could work, but if you have a local variable instead of a variable that is limited to its function, it is more advanced.
void OnStart()
{
SetLocalVarInt("name", 1);
Function();
}
void Function()
{
if (GetLocalVarInt("name") == 1)
{
// Something happens when it equals 1, if it doesn't, the game doesn't do anything.
}
}
It depends on which way you want it to go. For it to open, you need to give the door a force with one of the axis. The first one is x, second, y, and the third, z. If you want the door to blast open, try a little more.
(05-14-2011, 02:41 PM)Greven Wrote: hmmm... ok, but what do you use these commands for? like give an example of something (sry for being stupid )
Here is an example. It checks to see if the local variable is equal to 2 once the player interacts with an object and enters an area. Then causing the player, when they enter some other area, having a light to turn off by itself. Complex? Not really. :p
I want to make my custom story begin with a fade in form black and the player walking forward by itself. I want them to walk about two or three metres forward and then stop and give the player back control =)
I dont have the expansion and so i can't use the MovePlayerForward(af floatAmount) function, please help =)
Only thing I can think of is the AddPlayerBodyForce(float afX, float afY, float afZ, bool abUseLocalCoords); command, although Kyle might be able to find a better answer.
It depends on which way you want it to go. For it to open, you need to give the door a force with one of the axis. The first one is x, second, y, and the third, z. If you want the door to blast open, try a little more.