|
4 registered members (AndrewAMD, Lapsa, Martin_HH, 1 invisible),
1,252
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: player problem
[Re: DAVIDMORETON]
#314734
03/10/10 16:34
03/10/10 16:34
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Your code look correct, so my best guess is that you need to disable the players "gravity" in the climbing function, and re-enable when he's done.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: player problem
[Re: EvilSOB]
#314846
03/11/10 14:53
03/11/10 14:53
|
Joined: Jan 2005
Posts: 282 devon UK
DAVIDMORETON
OP
Member
|
OP
Member
Joined: Jan 2005
Posts: 282
devon UK
|
Thanks EvilSOB for your reply. I have looked through the manual for 'gravity', but found nothing to do with C-Script, only LC. However, I have solved the problem by placing an invisible wmb block at the foot of ladder on which the player must stand in order to trigger the lift op.(added it to the 'lift' code) Works OK.! Now I must code for going up the ladder a step at a time, it's a little more real than just 'shooting up'. BUT, I understand that 'goto loops' are not acceptable any more, according to the latest manual - what say you? Many thanks for your help. David
Last edited by DAVIDMORETON; 03/11/10 15:51.
|
|
|
Re: player problem
[Re: DAVIDMORETON]
#314865
03/11/10 17:44
03/11/10 17:44
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
GOTO is evil ... more evil than me!
Look at the manual for "while()" loops and you'll see how it can be like a goto loops but cleaner... If you need more help, just ask...
Another thing, with the gravity, it aint going to be in the manual, as I see you are using the templates. Try putting a post in the templates section about the gravity issue. Someone there should be able to help.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|