Thanks for the ladder code George, but I can't get it working. This is what I have done:
- put your code into mine including this:
code:
var gravity_temp;
var rope_speed_up = 1;
var rope_speed_down = 1;
- put a map entity into my level and gave it action rope
- made skill1 100
Now I get a dangerous event warning and after that a wdl crash.
So I changed the following:
code:
if (key_w == 1 && my.z + (my.max_z - my.min_z) / 2 > player.z - (player.max_z - player.min_z) / 2)
{
wait(1); //added this...
move (player, rope_speed_up, nullvector);
}
if (key_s == 1) // go down
{
wait(1); //...and this
move (player, rope_speed_down, nullvector);
}
Also changed the keys to w and s just like in my game is used.
Now I get a too much actions _rope_event error.
How can I make it work? Please help me!!!