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 / collisions

Author
Message
jermaine
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Baltimore, Maryland
Posted: 19th Jun 2006 19:17
ok i was told to post here so.

Is there a way i can make it so when the player collides with a object a message would appear?
or another actions happens
can someone tell how

HI
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 19th Jun 2006 19:31
Without knowing exactly what you are trying to do, this is the best advice I can give.

When you approach a door or other interactive item in FPSC, a script (.fpi) tells the engine to display a message (HUD) concerning that item.

Look at the .fpi scripts assigned to items like the torch, ammo, doors, etc, and see how they are written. Then write or alter an existing script to do what you want.

You will learn more from this than what anyone here could tell you in the long run.

Crazy Grandpa
jermaine
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Baltimore, Maryland
Posted: 19th Jun 2006 19:40
i just wanted it so when the player collides with a character a message appears. just like when a player collides with a key it the message says "u picked up a key".

i want the same effect except i want to change the message.

thanks for your reply by the way.
but i looked at the pickup scripts and i couldnt find how they make the message appear.

HI
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 19th Jun 2006 19:53
;Artificial Intelligence Script

;Header

desc = Pickup Key

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10

:state=0:hudreset..........clears any text image
hudx=50,hudy=90............positions the text image
hudimagefine=gamecore\text\pickedupakey.tga........defines the text image
hudname=keyprompt..........names the HUD

:state=10,plrdistwithin=40:state=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt

plrdistwithin=40..........when to display the HUD

Experiment with it. Have fun.

Crazy Grandpa
jermaine
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Baltimore, Maryland
Posted: 19th Jun 2006 20:13
thanks one more question i'm trying to make a enemy to spawn already dead. (when the game starts the enemy is already dead).

I searched for this but some ways did not work. But it never said how to do it. is there a way i can just have the enemy angled to lay on the ground like he was dead?(past that i can just set him to immobile)

so can anyone help with that?

HI
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 19th Jun 2006 20:54
just curious, what's with so many people wanting a "spawn already dead thing?" Is this multiple people asking, or one person changing there name often. It just seems weird, I don't know ,could just be me.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 19th Jun 2006 21:03 Edited at: 19th Jun 2006 21:04
Use this script on an unarmed character entity. Make sure to set IsImmobile to Yes.



Crazy Grandpa
jermaine
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Baltimore, Maryland
Posted: 19th Jun 2006 21:05
for me it just helps with the horror theme i guess.

yeah i saw the other threads but the hurt fall= 0, or 1 thing is not working. is there a script,? I 'm a major fpsc noob but i'm willing to try a script.

any help?

HI
jermaine
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Baltimore, Maryland
Posted: 19th Jun 2006 21:10
@xplosys

thanks i'll try it

HI
jermaine
18
Years of Service
User Offline
Joined: 3rd May 2006
Location: Baltimore, Maryland
Posted: 19th Jun 2006 21:19
cool it worked I just used my first script!

thanks

HI

Login to post a reply

Server time is: 2024-11-22 14:23:57
Your offset time is: 2024-11-22 14:23:57