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 / Help with my controlable UFO script

Author
Message
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 20th Jan 2007 23:17 Edited at: 20th Jan 2007 23:19
I have tried to make a script that will allow the player to control a ufo with these keys:

u=forewards
j=backwards
h=turn 90 degrees left
k=turn 90 degrees right

t=up
g=down

But it doesn't work unfortunatly, You can move up and down, and rotate left and right; but u cannot go forwards or backwards.

also when you are not on the craft it just keeps moving forwards; until you get on, which is not supposed to happen.

here is the code


note: the bits saying ";move right" and things like that aren't in the actuall code, they are there yo make it easier for you guys.
this will obviously require help from master scripters. I'm sure this is possible, ive just made a mistake somewhere.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 21st Jan 2007 09:46 Edited at: 12th Feb 2007 12:40
No idea on that but this could well be the first decent vehicle script ever! Hope you find an answer soon, if only butters was still here...
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 21st Jan 2007 10:23
yer I was thinking the same thing about butters aswell... maybe airslide could help.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 21st Jan 2007 16:41 Edited at: 21st Jan 2007 16:45
Just in case you got the scancodekeypressed thing wrong, try pressing different keys ingame and if they are there change them accordingly, I can't think of anything else at this point, if any scripting wizards look at this thread please reply, I relly want this script to work!

Come to think of it, this could be applied to other vehicle entities... you may have solved the problem that we all have faced: contollable vehicles. I think you should make a variation of this script for a hovercraft or something and then sell it! I assure you that loads of people would buy it! Just a thought

and sorry about that 3 thread argument a few weeks back, I deserved that ban. Mods, don't post saying things like "you certainly did, you violated the AUP" please


tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 21st Jan 2007 17:39 Edited at: 22nd Jan 2007 08:11
i'm not ganna sell a script; if it works i'll give it away for free. About the scancodekeypressed they are the right keys.

this can be used for absultly and entity. You don't have to make a variation for a hovercraft, this one will work. and you could remove the up and down for cars and tanks an things like that.

If i get this working i will make a suitble UFO that can be used for it too.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 22nd Jan 2007 08:53
Ok, it was just an idea. Where are all the scripters?


RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 22nd Jan 2007 08:58
Quote: "Where are all the scripters?"


They are all taking breaks from the forums.

Tiggle Bitties

Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 22nd Jan 2007 20:19
Quote: "They are all taking breaks from the forums"

that would happen now wouldn't it, when a (possibly) revolutionary script that needs editing pops up, talk about bad luck


Phlum
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 22nd Jan 2007 20:31
This is the best script ever since...well, ever! I don't actually want it to do this, but imagine if it could shoot as well...cool!

Good luck Tyrano!

-Phlumetoid

[center]
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 22nd Jan 2007 21:24 Edited at: 25th Jan 2007 21:43
Saying good luck will only boosts morale...not brainpower, but thanks for bumping this thread none the less


tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 22nd Jan 2007 21:57
i really don't have a clue why this is not working, it is my 3rd script ive ever made; it only works around 70% right now (up down and turning). I really do need help to get this to work; but i think that everyone that knows how this works is keeping it secret till after the Nvidia compo.

Woot Kingdom hearts owns!
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 23rd Jan 2007 20:46
downloading now. hopefully to the rescue.

rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 23rd Jan 2007 21:14
Halleluah!,Butters is on the case,hope to see this working soon
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 23rd Jan 2007 22:20
hmm. I'm having issues with the RC, so I'm gonna try and get it working with empty's mod, using the scancodekeypressed command, then change the command back to the RC compatible one. At the moment, I'm not sure if it's my scripting or the update that are messing with the thing!

Me Self
18
Years of Service
User Offline
Joined: 7th Mar 2006
Location:
Posted: 24th Jan 2007 00:44
butters to the rescure yay

Fletch the best .
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 24th Jan 2007 08:14 Edited at: 24th Jan 2007 08:16
yay! thanks butters! It took me about an hour making that script, so hopefully you will get it working.

Also i think we should change the rotate angle to 2 ro something, so that you hold it down and it will give a more "vehicle feeling".

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 24th Jan 2007 17:14
Welcome back Butters, good to see you.

Butters, How'd the break from Fpsc go?


Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 25th Jan 2007 12:04
Still on a break bro. Just posting in the odd 1 or 2 threads that really take my interest.

Sorry I haven't fully gotten down to getting this working yet. I've been messing around with new Ai scripts, but tonight I'll spend all my time on this.

GAME MAKER ITALIA
18
Years of Service
User Offline
Joined: 28th Oct 2006
Location: ITALY -Milano
Posted: 25th Jan 2007 14:08
Heya,

Anyone can create script that do this:

Swat(
IF player=SWAT
see players nick
)
endif
Red(
player=RED
see players red nick
)

In this case all player can see hes team nicks
and don\'t kill player who can see it nick..

If player=red
shoot player=red
action=messages.don\'tshoot...

**This is only little idea.. i\'m not practice in scripting here..*

Like php

SETTIMO TUDOR EUGEN C.
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 25th Jan 2007 17:50
@butters: dont worry about it.

@GAME MAKER ITALIA:
1) i don't actually get what you mean.
2) post this somewhere else stop hijaking.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 25th Jan 2007 21:43
Game maker Italia, firstly: stop hijacking! secondly: WTF!

Tyrano man, let us hope that this is a "Butters to the rescue" situation

Butters, I know what you mean, you want to live life but eventually you come back here for one reason or another, no matter how hard you try. Unless you are under ban, then the forum withdrawal symtoms set in...that's bad.
Quote: "new Ai scripts"

Sensei? or something new?


AaronG
18
Years of Service
User Offline
Joined: 28th Oct 2006
Location: Millstone, NJ
Posted: 27th Jan 2007 07:24
>BUMP<

I am really interested in this.
Rawy
18
Years of Service
User Offline
Joined: 1st Oct 2006
Location:
Posted: 28th Jan 2007 07:34
me too...

Im rawy,
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 28th Jan 2007 16:03
lol everyone wants this.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 1st Feb 2007 20:03
yep, the first practical vehicle script
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 8th Feb 2007 21:59
bump
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 9th Feb 2007 18:46
don't bump this; we have already found out that it is not possible at the moment, as the movefore and moveback commands do not work if assosiated with the player.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 10th Feb 2007 09:24
OK, sorry to hear that
Blaine damage
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Truth is, I dont even know!
Posted: 10th Feb 2007 16:29
Dude, awsome!!!
This might be the first vehical script!!!

Ok ya u know what, NO!
Phlum
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 10th Feb 2007 16:54
Blaine:
Quote: "This might be the first vehical script"
It is.

Tyrano: Yay! Butters: Back on course. Cool!

[center]
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 10th Feb 2007 21:49 Edited at: 12th Feb 2007 12:35
Do you guys even read threads, he found that it is IMPOSIBBLE WITH HIS SCRIPT! Please read the entire thread before posting the first thing that comes into the pile of [insert profnity here] that you use as a brain!

Sorry if this is too offensive but atleast try to leave threads that serve no further purpose
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 11th Feb 2007 06:28 Edited at: 11th Feb 2007 06:31
I am gonna kill you evil star... FOR BLOODY IGNORING THE FACT THAT I DID MAKE THE FIRST WORKING VEHICLE SCRIPT EVER AND YOU STILL IGNORE ITS EXISTANCE! OH, A NEWB (not to be confused with noob), well, you are forgiven for charge one, but charge two is that YOU SAID IT WAS IMPOSSIBLE WITHOUT CONSULTING A SCRIPTER. DON'T rain on other peoples parades, ever.

The fix is easy, the entity has to be an enemy entity... then, it will work.

If you fear speaking for yourself, make use the words of others while discovering your own voice.
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 11th Feb 2007 11:37 Edited at: 11th Feb 2007 11:41
omg, really? i'm trying it right now.

EDIT: didn't work...

Woot Kingdom hearts owns!
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 11th Feb 2007 22:22
It will work, because I have done it a hundred times... you probally didn't convert it to an enemy correctly, or your script is bugged...

Okay, your script is buggy... ASSOCIATEPLAYER only works for the up down movement. Don't exactally know what the coloff colon is about, but you want to have coloff UNLESS the player is riding IN it.

I am gonna attempt to attach what I originally did... I 'know' this works and if it doesn't something is SERIOUSLY broken. (Yes, it looks like the player is walking like normal, but the key difference is that he can't straft, but turns with a and d. the forward and backwards motion is controlled by the script. NOT by the computer (meaning you can increase the player motion speed dynamically)


Okay... this is simplified and cleaned up (yeah, I removed the sounds... they can be put back in).

Quote: "
:state=0:state=10,nogravity
:state=10,plrdistwithin=50:associateplayer,coloff,state=1
:state=1,plrdistfurther=51:unassociateplayer,colon,state=10
:state=1,plrdistwithin=50,scancodekeypressed=20,raycastup=20 80:moveup=1
:state=1,plrdistwithin=50,scancodekeypressed=34,raycastup=-3 0:moveup=-1
:state=1,plrdistwithin=50,scancodekeypressed=22,raycast=-3 0:movefore=1
:state=1,plrdistwithin=50,scancodekeypressed=36,raycast=3 0:movefore=-1
:state=1,plrdistwithin=50,scancodekeypressed=35:rotatey=-90
:state=1,plrdistwithin=50,scancodekeypressed=37:rotatey=90
"


Notice that you don't need to turn coloff every time... just once. Also, since plrdistfurther=51 checks to see if the player is further, you DON'T need to repeat that same line over and over. Just have it run every loop. The raycast is for forward, raycastback (or just using opposit things) is for backward. raycastup is for the vertical movements.

By making this an enemy, you can MOVE the 'ufo' along the horizontal plane (forwards and backwards), but inorder to make it move the PLAYER, you either need to have the player sitting in it... or constantly teleport the player to it by adding ::plrmoveifused and an ifused=name in the enemy.fpe/

If you fear speaking for yourself, make use the words of others while discovering your own voice.

Attachments

Login to view attachments
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 12th Feb 2007 12:32 Edited at: 12th Feb 2007 12:54
Quote: "I am gonna kill you evil star"


For what, not bowing down to you, the almighty forum God? I said that it was impossible with his script, and you yourself said that it was bugged, therfore with his script it was impossible, so stop thinking that your better than everyone else!

And if your going to kill me for not noticing your "first" vehicle script then why don't you kill Blaine damage too for saying

Quote: "This might be the first vehical script!!!"
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 12th Feb 2007 12:38
thanks for that Les Horribres. I didn't see yours, and i am not that good at scripting, so thats why mine didn't work. You are legend around here, so i'm sure yours will work.

Evil star, that was a little over the top, i was wrong and i admit it.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 12th Feb 2007 12:53 Edited at: 12th Feb 2007 13:04
Quote: "Evil star, that was a little over the top, i was wrong and i admit it"


Ok it was a little, but what does you being wrong and admitting it have to do with your original script not working and my post? I only said that it was impossible with your script because you did

Quote: "we have already found out that it is not possible at the moment"




Les Horribres,

Quote: "A NEWB"

New? I came here about two months after you,
so that makes the difference between "newb" and a master does it?

What is there to be confused about? They mean the same thing:

Noob; new "lesser" member of a community, often discarding rules of that community.

Newb has the word "new" in it and implies that the "newb" is new therfore the same meaning as the definitive, less retarded "noob"

Oh and incase you want to know, I ain't apologising in any way, shape or form because you hate me and wish to murder me for telling the truth, presenting evidence and missing one of your old threads that tyrano missed too. As did most other members of the community.

My veiws on you are still those of hatred, I would continue but the AUP is stopping me.
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 12th Feb 2007 14:49
stop argueing and leave it.

could a mod delete those last few posts, as its spamming my thread.

Woot Kingdom hearts owns!
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 12th Feb 2007 16:34
Sorry tyrano...
Frag Monkey
17
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 2nd Mar 2007 01:08
SO? Any more news on this?
Thistle Studios
17
Years of Service
User Offline
Joined: 1st Mar 2007
Location: Kirkcaldy
Posted: 4th Mar 2007 19:56
excuse me but could someone send me the code snippet of the WORKING Ufo script?

Im a new user, im young and FPI-dyslexic, i simply dont have the foggiest and cant learn FPI, so copy and paste code snippets please!

Login to post a reply

Server time is: 2024-11-23 11:38:33
Your offset time is: 2024-11-23 11:38:33