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 Models and Media / Text documents to read in-game

Author
Message
Beno09
15
Years of Service
User Offline
Joined: 3rd Jun 2011
Location: Bosnia and Herzegovina
Posted: 10th Jan 2012 13:02
Hello guys!
I am hard working on my game Partemons, I hope mods will rename to Hard Life: Strange Power. So I have one question.
How to make something like text documents and when you discover them in-game text on paper will be shown and you can read it ? I hope someone can help and better can someone send example so I can just edit it ?
Thank you guys, have a nice day
szempek555
15
Years of Service
User Offline
Joined: 9th Apr 2011
Location:
Posted: 10th Jan 2012 18:54
If I'm not wrong I think there is a script for that somewhere in the script thead but I didn't have much luck on using it but maybe it will wok for you.
szempek555
15
Years of Service
User Offline
Joined: 9th Apr 2011
Location:
Posted: 10th Jan 2012 18:56
Here is a link I found http://forum.thegamecreators.com/?m=forum_view&t=171157&b=23 I hope you can you it.
Beno09
15
Years of Service
User Offline
Joined: 3rd Jun 2011
Location: Bosnia and Herzegovina
Posted: 10th Jan 2012 19:43
I already added that feature to my game but it is obvious that I did not explained precise what I want.
I want a paper to display and text on it
szempek555
15
Years of Service
User Offline
Joined: 9th Apr 2011
Location:
Posted: 10th Jan 2012 20:36
Cosmic Prophet
18
Years of Service
User Offline
Joined: 17th Mar 2008
Location: The Cosmos
Posted: 10th Jan 2012 21:57
You can do this with model pack 54.

See image.........>

Temporaraly out of business, will return soon.
Ross tra damus
3D Media Maker
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 10th Jan 2012 22:29
Beno09

You can do this by giving a model (of sheet of paper perhaps) a script that will show a 'hud' image on screen of the paper with the writing on it when the player is within a certain distance of the model.
If you have an image of the type of paper you would like and a reference to which type of 'font' you would like to be used, I will see what I can do for you (when I get the time).

NOTE - You will also be able to duplicate the huds with different messages on them using a hud template but you will have to also duplicate and rename the script for each new message.
Beno09
15
Years of Service
User Offline
Joined: 3rd Jun 2011
Location: Bosnia and Herzegovina
Posted: 11th Jan 2012 12:24
@szempek: Thanks mate, but this is little bit complicated because author did not explained everything. I will try it, but it will be hard I suppose. Thanks anyway

@Cosmic Prophet: On which way is working method in model pack 54. How can you create things like on picture ? Thanks for your help.

@Rosstradamus: I will wait when you got the time. I will be very grateful to you if you mixed something for me. Thanks mate
Beno09
15
Years of Service
User Offline
Joined: 3rd Jun 2011
Location: Bosnia and Herzegovina
Posted: 11th Jan 2012 16:45 Edited at: 11th Jan 2012 16:46
I found the easiest way for me. But I have one question indeed.
http://www.youtube.com/watch?v=TLb0W4BMXAE
On that way I am able to create text and text is apearing but the question is how to make that every time when player is close to entity text appears. Now text is appearing only once and than you can not see it anymore. Can someone download script, I attached it and try how to do this what I want. Thanks.
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 11th Jan 2012 17:25
This thread should have been in the Script section since it relates more to the script side than models.

I took a look at the script. The first thing to do is change the "timerstart" and "timergreater" to "etimerstart" and "etimergreater".

To make it so it will show each time the player is close to the item, you use the "plrdistwithin=x" command. So in your script, you would eliminate the "plrwithinzone=1" and use the command I mentioned.

Also, please remember to define your huds in the "state=0" lines. Your script will not work if you define hud(s) in the middle of it.

Here is the script corrected to the proper syntax:



Attach this to an entity and make sure the entity is dynamic. You can change the distance within and further values to suit your needs, as well as adjust the "etimergreater=x" values.


Twitter: @NFoxMedia
Beno09
15
Years of Service
User Offline
Joined: 3rd Jun 2011
Location: Bosnia and Herzegovina
Posted: 12th Jan 2012 12:36
Thanks Blackfox it works very good. Have a beer from me
Ross tra damus
3D Media Maker
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 12th Jan 2012 18:05
Beno09
I decided to share with everyone so I created a new post.
Check out the link below.

http://forum.thegamecreators.com/?m=forum_view&t=193361&b=24&p=0

Login to post a reply

Server time is: 2026-07-05 15:23:36
Your offset time is: 2026-07-05 15:23:36