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 / Display a pic when near an object

Author
Message
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2007 00:31
Right, I'm now trying my hand at scripting without just copying and pasting other peoples (sinks in better if i have to work harder) but I'm having a bit of trouble (figures )

I want an pic of a note to appear when the player is within a certain distance of an object. Here's the code I have:



But the note isn't showing. Do the files [shownote.fpi, note.tga] have to be in a certain folder? I've created my own folder in Files called 'Mystuff' which holds those two files. I didn't want to scatter my files into different folders if I could help it.

Does the code look right?


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 01:00
Yeah, the code looks good. Try putting the Note.tga in the gamecore\text folder and see if that's it. It doesn't matter where the script is, but I'm not sure about the hud.

I'm sorry, my answers are limited. You must ask the right question.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2007 01:17 Edited at: 2nd Jan 2007 01:20
Hmmm.

I have the script ("shownote.fpi") in "scriptbank\user".
I have the note (note.tga) in "gamecore\texts".
I'm using the washing machine, under 'Modern Day'.
The note is in tga format.
In the washing machines Main AI, I've pointed it to "user\shownote.fpi"

but it's still not showing! [The note is attached, the attachment is in jpg format]


Attachments

Login to view attachments
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 01:47
The "note.tga" should be in "FPS Creator\Files\languagebank\english\gamecore\text"

and the "shownote.fpi" should read "hudimagefine=gamecore\text\Note.tga"

Everything else looks good.

I'm sorry, my answers are limited. You must ask the right question.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2007 09:19
Nope, I can't get it to show! I've tried:

gamecore\text\note.tga
languagebank\gamecore\text\note.tga
C:\Program Files\The Game Creators\FPS
Creator\Files\languagebank\english\gamecore\text\note.tga

and the note.tga is in the gamecore\text folder.


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 15:52
Good, but did you reflect that change in the fpi script?

I'm sorry, my answers are limited. You must ask the right question.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2007 16:12
Yes, that's what I meant, i've tried those paths in the fpi script.


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 16:50
Ok then. I'm at a loss. Sorry.

I'm sorry, my answers are limited. You must ask the right question.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2007 17:10
Would it be possible for you to have a try? using the same as I have? Then I can know for sure whether it's something I have / haven't done.


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 17:22


Used it on an entity and a zone (changed the hud, but that's all) and it worked fine.

You do know that the entity has to be dynamic.... don't you?

I'm sorry, my answers are limited. You must ask the right question.

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 2nd Jan 2007 20:35
Dynamic, err, ahh, you could possibly be right there, so static, as I was using, doesn't work then, ahh, erm... That worked, thanks xplosys.

* runs in corner and gives himself a slap *




xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 22:12
lol

Glad you got it.

I'm sorry, my answers are limited. You must ask the right question.

Login to post a reply

Server time is: 2024-11-23 09:16:48
Your offset time is: 2024-11-23 09:16:48