Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Raycasting Help please.

Author
Message
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 23rd May 2007 21:05
Hey guys.

I could do with a little help! As you may have seen in the models and media forum, I have a guy who can dive left and right. What I really need is a script that raycasts to the left and right to test if there is a wall nearby. There aren't many scripts I can look at that demonstrate raycast commands, so if anyone can help, that'd be much appreciated.

Butters

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 23rd May 2007 22:50
Quote: "What I really need is a script that raycasts to the left and right to test if there is a wall nearby."


To my knowledge, that's going to be a problem. We have conditions for raycast front, back, and up. I don't know of any for left and right.

Best.

I'm sorry, my answers are limited. You must ask the right question.

vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 23rd May 2007 22:52
Well as far as I know there are no raycast left or right commands which makes it awkward. I've tried this sort of method and it works slightly for me, but it may just be a glitch knowing me. It's only a method not the actual script, i guess you'll probably know what to do.

I assume your character plays the dive animation when shotdamage=1 so,



Sorry if I didnt help you much but I hope you can see the idea I had. It may help it may not

Login to post a reply

Server time is: 2024-11-23 18:11:20
Your offset time is: 2024-11-23 18:11:20