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 / Trying to make a box move.

Author
Message
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 13th Jan 2008 18:43
I am new to scripting, so I followed a few tutorials and then I tried writing a simple script to make a box move.

The box will spawn and bounce in the air, can anyone help me?

The best things in life are edible.
0 Geoff 0
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 13th Jan 2008 21:28 Edited at: 13th Jan 2008 21:28
look at the settings in an antigrav platform and give the same ones to the box. scripts etc... and give it a waypoint. That should work
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 13th Jan 2008 21:33
I'm not trying to make move across a waypoint. When it spawns I want it to move forward 2 segments.

The best things in life are edible.
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th Jan 2008 08:20
Moving a specific distance on command would be best done with waypoints.

If you set it up to follow waypoints (And this would be some nice practice for a new scripter) just copy and paste the waypoint code from another script, then you'll see in the code how they handle the waypoints. One of the lines that handles them basically says that if it hits the end of the waypoint line to go back. For your box, I would delete that line and just let it sit at the end of the waypoints.

Good luck!


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 16th Jan 2008 02:34 Edited at: 16th Jan 2008 02:35
If only it worked. I was avoiding waypoints because, well, most of the time they don't work. I've figured it out w/o waypoints anyway. (Big boom!)

(Edit) And for practice, I'm opening up scripts and playing with 'em.


Image made by the overworked Biggadd.

Login to post a reply

Server time is: 2025-05-21 20:10:38
Your offset time is: 2025-05-21 20:10:38