lifts

Posted By: DAVIDMORETON

lifts - 09/05/09 10:27

Hi Folks,
I am having a problem making a lift which will not only go in X,Y and Z (as in standard lift01) but also rotate on its axsis. I have made the platform and the script to make it go up etc. and turn, but the player falls through it! Have given the platform a push value of 50, but it still will not carry the player. have checked the forum, but no data on this. Can it be done? It would seem a bit of code needs to be added to the platform - have tried all sorts, but no luck.

Can anyone help please?
Posted By: Blink

Re: lifts - 09/05/09 14:41

did you use the polygon flag in properties to make it solid and use its own form?
Posted By: DAVIDMORETON

Re: lifts - 09/05/09 17:05

Hi Blink,
Thanks for your reply to my problem. Yes, I have applied the polygon flag to the lift platform, and the player still drops through. He is getting quite bruised by now,. and is looking foward to resolving the situation!!

Any other ideas? This is holding up the game construction, been at it for days now.

thanks again, David
Posted By: flits

Re: lifts - 09/05/09 17:26

maby you can do this

check if the player is on the platform
ifzo
move (and rotate) the player the same as teh platform
no he wont be able to fall trough

the only problem of this is to check if the player is on the platform ore not
Posted By: Cowabanga

Re: lifts - 09/05/09 18:38

@All: Sorry for the off-topic, but:
lifts, flits are in the same way grin
Posted By: Blink

Re: lifts - 09/05/09 18:44

if i were you, i would build a test level and reconstruct what you are trying to do, just the lift and the player. now, here's another issue. if you are using the template lift code, but using your own player code and not plBiped01_entity, then it wont work. if you are using your own player code i suggest using the lift code in the AUM 13, you might hasve to modify it, its an older code. if you are using the template player, you will be fine.
Posted By: DAVIDMORETON

Re: lifts - 09/06/09 11:31

Thanks Blink,
Got your last message - understood.
I am using the standard c-script player (and action). It works fine using the standard lift(and action), but I can't rotate the lift at the end of its journey, that is why I have made my own lift(model) which will(with my script)go up and rotate, the trouble is it won't carry the player. There must be a bit of code somewhere I can add to my lift script to enable this.
I have been through the standard lift script to see if I can 'lift' some code from it, but no luck so far.
Appoligies for keeping on like this, but there must be a method of doing it.

Perhaps there is a way of rotating the standard lift? I can't seem to do it!!

Hopefully, David.
Posted By: xXxGuitar511

Re: lifts - 10/04/09 04:10

...make sure your players trace() function for gravity detects entities; make sure your lift is solid and has polygon set for detection.

The tricky part is getting your player to move slowly and rotate with the lift. After each "gravity trace" the player does, check if their is a lift entity under it, if so, then you'll have to calculate the lifts difference in position and rotation from the last frame and add it to the entities position. Tip: vec_rotate();
Posted By: DAVIDMORETON

Re: lifts - 10/29/09 16:18

Thanks xXxguitar511 for your help. Where would we be without the forum?!
© 2024 lite-C Forums