|
|
in_passable, on_passable [A8]
#336567
08/05/10 00:48
08/05/10 00:48
|
Joined: May 2009
Posts: 5,365 Caucasus
3run
OP
Senior Expert
|
OP
Senior Expert
Joined: May 2009
Posts: 5,365
Caucasus
|
Will this functions start working with A8? BTW, I used old gravity sctipt with A8 (without the create mesh in WED, with it works as usual), trace can't detect anything... is that a bug? Here is a gravity code: function handle_gravity() { my_height = c_trace(my.x,vector(my.x,my.y,my.z - 1000),IGNORE_MODELS|IGNORE_PASSABLE|USE_BOX); if(my_height > 10) { accelerate(absdist.z,-10,1); // 10 is gravity and 1 is acceleration } else { absdist.z = -(my_height/1.2)+4; // play with 4 (used for smooth) absdist.z = clamp(absdist.z,-4,4); // limit absdist } }
|
|
|
|