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 / Looking for help

Author
Message
Exgyser
17
Years of Service
User Offline
Joined: 17th Oct 2007
Location:
Posted: 18th Oct 2007 00:47
Hi,
I am conducting research using FPS creator and I am looking for two things that we really need help with.
1. we are trying to make the Entities appear randomly and float in the air without having them fall, then despawn. Is there anyone that can explain/show me how to do this?

2. Also we are trying to extrapolate the X/Y cordinates of the crosshair of the camera into a word/wordpad file. Could someone post the code as well as explain how to insert the code into the progamming of FPS creator.
This would help us a bunch. Thank you very much for your time
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 18th Oct 2007 17:12
If you have DarkBasic Pro, you could modify the source code (available on the FPSC site)...

But I really can't help you with this. The 2nd is impossible with simple scripting, the 1st may be very hard to make


Deathead Studios. Join now!
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 18th Oct 2007 18:16
we are trying to make the Entities appear randomly and float in the air without having them fall, then despawn. Is there anyone that can explain/show me how to do this?

THe randomisation of position is impossible in FPSC as basic script commands cannot alter the xyz co-ordinates of an entity's position.

do do random floating and de-spawning try this:

:state=0,random=50:state=1
:state=1:floatrate=1
:state=1,random=100:state=2
:state=2:destroy

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Oct 2007 05:17 Edited at: 20th Oct 2007 05:22
What Butters says is true. But there are some "Psuedo" ways to get what you're looking for.

Put this script into your ghost entity (I'm guessing that's what you're going after, if not it'll work just the same):



(Sorry, Butter Fingers, I slightly modified your code so that I wouldn't have to come up with a new one, lol)

Now set these properties for your entity:

Spawn At Start = "No"
Max at any time = 1
Maximum Spawn = 9999 (Or just something high)
Spawn after delay = "No"
Spawn when dead = "No"
Number to spawn = 1

Strength = 0 (Or, if you want it to be killable, give it a number for it's health)

Physics On = "No"


Now, put this entity in lots of different locations around the room. They will spawn at seemingly different times, and it will appear to be randomly spawned! Also, the entity will always face towards the player... kinda creepy really. If you don't want the entity to face the player just remove the ",rotatetoplr" part of the code.

For a different effect of grouped entities, change the "Qty Random" property to 3, and change the "Max at any time" property to 4. This will randomly spawn anywhere from 1-4 of the entities and they'll be grouped together.

Hope that helped a bit.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!
Exgyser
17
Years of Service
User Offline
Joined: 17th Oct 2007
Location:
Posted: 28th Dec 2007 23:42
OK so since the random Bit cannot be done then is there anyway to extrapolate the X/Y cordinates of the actual entity.

What we are doing essentially is setting up a level for people to watch. but we need the X/Y cordinates of the entities on the screen to try and hope to Code our data better....

any ideas?
Thanks again

Login to post a reply

Server time is: 2024-11-23 23:34:48
Your offset time is: 2024-11-23 23:34:48