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 / Making a robot

Author
Message
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 20th Feb 2010 10:29
Hi im making a robot that the player shuld be able to controll by using the numb pad but it doesn't work, here is the script that i made:


Srry about my english im from sweeden
TerrorNation
14
Years of Service
User Offline
Joined: 18th Dec 2009
Location:
Posted: 20th Feb 2010 12:02
Well for one you have put scancodeceypressed, rather than scancodekeypressed.
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 20th Feb 2010 14:48 Edited at: 20th Feb 2010 14:53
ok i'll try that

Edit: nope not working

Srry about my english im from sweeden
Ocho Geek
17
Years of Service
User Offline
Joined: 16th Aug 2007
Location: Manchester, UK
Posted: 21st Feb 2010 00:19
look at the hooverboard script

haven't looked at it but that is pretty much the script you want

I love Cheese; It Fills Me With Glees,
My Tastebuds it please; oh yes, i love cheese.
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 21st Feb 2010 15:36 Edited at: 21st Feb 2010 18:01
First, you forgot the colon at the beginning of each line

Second, the third colons should be changed to commas

Third, if all state 2 is doing is setting state=0, then state 2 is not needed.

Fourth, and this is something I doubt you would have known, forceleft, forceright, and moveback never seem to work, at least not for me, so I would suggest rotating the entity.


EDIT: Fixed it thanks Ocho, I'm glad I added the example code

Hope This Helps
Ocho Geek
17
Years of Service
User Offline
Joined: 16th Aug 2007
Location: Manchester, UK
Posted: 21st Feb 2010 15:40 Edited at: 21st Feb 2010 15:41
umm... thats a colon

pretty important or your script wil do nothing

I love Cheese; It Fills Me With Glees,
My Tastebuds it please; oh yes, i love cheese.
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 21st Feb 2010 22:36
Ok i changed the script to this:


but it's still not working, it does'nt move at all.

Srry about my english im from sweeden
wayne davis rocks
16
Years of Service
User Offline
Joined: 10th May 2008
Location: US Liberty In
Posted: 21st Feb 2010 23:25
make sure you dont have isimobile checked in the assets

Wayne Davis Band
wayne davis rocks
16
Years of Service
User Offline
Joined: 10th May 2008
Location: US Liberty In
Posted: 21st Feb 2010 23:26
also try to raise the robot just a bit before left clicking to add it to the level some entities get stuck on the floor

Wayne Davis Band
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 22nd Feb 2010 01:16
Do you have numlock on?

Hope This Helps
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 22nd Feb 2010 13:52 Edited at: 22nd Feb 2010 13:56
I have tried with nomlock on and off, and it's not immobile, i'll try to move it up a bit.

Edit: nope still not working

Srry about my english im from sweeden
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 22nd Feb 2010 20:57
Answer\do the following and I will be able to sum everything up

1. have you tested it with a character such as the ww2\thug? If no then try it.

2. If it works with the character such as the ww2\thug, then go into the robot you are going to use .fpe file and add in the following code somewhere


That should solve the problem.

The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 24th Feb 2010 18:36 Edited at: 24th Feb 2010 18:41
Thanx it works now i will make a model and use it.

Srry about my english im from sweeden

Login to post a reply

Server time is: 2024-11-25 02:33:50
Your offset time is: 2024-11-25 02:33:50