lift

Posted By: DAVIDMORETON

lift - 03/25/14 14:26

Hi Folks,
I am using a template lift (lift01) and want to set it going from the piece of code below:-

entity* platform1;
entity* levercrater;

function craterlift
{
while(levercrater.tilt<380)
{
levercrater.tilt+=20*time_step;
wait(1);
}
{
* I need a piece of code to go here to work the lift *
}}

action craterlever()
{
levercrater=my;
my.enable_click=on;
my.event=craterlift;
}

I can set Z position, speed etc from template

Can anyone help please? (I have tried the trigger action, but
but don'r understand it enough to make it work - no help in manual)
Kind regards, David david@davidmoreton1.wanadoo.co.uk
Posted By: Tirti

Re: lift - 03/25/14 14:40

Hi DAVIDMORETON,

first of all i am an absolute german Newbie ;-)

I am not sure if i understand your Problem right?
The lift dont move up and down or what is you Problem?

In Action you say my.enable_click=on, so you can click on it.
The Event based on the Click is your function craterlift.

More Questions than Awnsers sorry ;-)

Greetings
Tirti
Posted By: DAVIDMORETON

Re: lift - 03/25/14 16:06

Hello Tirti - thanks for your reply - and very good English !!
The action triggers the switch - which moves down to the 'on' position - what I need is a bit of code to put in at the position
indicated which will make the lift move. (it is a template lift, lift01) Normally this would activate when the player steps on it, or when it is 'clicked' with the mouse. I want it to activate when the 'switch' in the code closes.
I have tried everything I know (over several days) but no luck.
Posted By: Tirti

Re: lift - 03/25/14 18:21

Hi DAVIDMORETON,

so you click the Switch(levercrater) and nothing happens?
You would if the Player stands on Lift and press the Switch the Lift should lift up?

Greetings
Tirti
Posted By: Det

Re: lift - 03/25/14 19:29

Hi
If you need a code for a lift look in the Aum Magazines there are codes for lifts in the Shooter Workshop the lift is working good .
© 2024 lite-C Forums