Scripts / Render score on screen

Author
Message
Aasmund
9
Years of Service
User Offline
Joined: 16th Jun 2015
Location:
Posted: 16th Jun 2015 22:15
Im wondering if there is any tutorial for make a score render on the screen. Like for example,
Im developing a hunting-training simulator for hunters where I have a target object like those on shootingranges. 0 its no points and 10 is the hightes score.

When the bullet hits one of the number-circles the number-circle it hits displays on the screen.
Hope you get what I mean.
PM
!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 16th Jun 2015 22:39 Edited at: 16th Jun 2015 22:40
This is not complete code but shows how you might do this. You need to be familiar (or get familiar) with scripting to make it work.



or just use something like this



Additional text options are in global.lua. Guide to using LUA is in Community Guides at Steam.

Hope this gets you started.
AKA SisterMatic (Steam)
Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD
PM
Aasmund
9
Years of Service
User Offline
Joined: 16th Jun 2015
Location:
Posted: 16th Jun 2015 22:53
Thanks will see what I can do. I dont have any LUA experience before, nor with scripting, so this will be a great place to start learning.
PM
!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 17th Jun 2015 01:44
With no experience scripting it might be best to use the scripts included with GG, attach them to entities and try to interpret what will happen by reading the script and watching it run.

Make small changes and see if you can "predict" the outcome you introduce. It's one of the fastest ways to learn scripting known to man

(Pssst.... Back up FIRST)
AKA SisterMatic (Steam)
Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD
PM

Login to post a reply

Server time is: 2024-12-22 01:01:53
Your offset time is: 2024-12-22 01:01:53