lift

Posted By: Orion

lift - 07/02/06 09:05

Kann mir bitte jemand sagen, wie ich den Lift so einstelle, dass er nach oben
fährt.(nur kerzengrade nach oben)
Posted By: Orion

Re: lift - 07/02/06 09:12

Oder anders gesagt,wie erkenne ich die Koords für den Endpunkt des Lifts?
Posted By: Orion

Re: lift - 07/02/06 09:28

Hallo!!!!!?
Kann mir niemand helfen???
Posted By: Orion

Re: lift - 07/02/06 11:36

my question is:
how to place a lift in WED?
Posted By: Frits

Re: lift - 07/02/06 12:45

Be patient, it is verry hot out here.

Make a lift in WED, set the floor at its origin (the green lines) and save it as a map entity.
Load it back into your level and make the following script in SED;

var Floor1=0; // or whatever the lowest point of the elevator is.
var Floor2=200; // or whatever the highest point is.

action lift_act
{
my.z=Floor1; // start at lowest point
while(me!=null)
{
if(key_d && my.z>=Floor1)
{
my.z-=5*time;
}
if(key_u && my.z<=Floor2)
{
my.z+=5*time;
}
wait(1);
}
}

Attach the action to the lift.
Build your level.
Run your level.
Press u, lift goes up.
Press d, lift goes down.

Regards,
Frits
© 2023 lite-C Forums