Scripts / Questions about the radar

Author
Message
nuncio
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 28th Jan 2015
Location: Schleswig Holstein, Germany
Posted: 29th Oct 2016 18:39
hi there!
i have discovered the radar script and it would be very useful for my "timebender" project.
in my game you have to collect stuff and it would be very useful if the items you would have to collect would appear on the radar. in the first test level i placed a floor decal under the collectable and i had the position of the collectable on my radar. but when i step on that floor decal it disappears and i don't see the collectable and maybe move on i will never find it again possibly. so i would like to know how i can make the collectable be on the radar. enemies are shown automatically so i could be possible for a collectable as well?
i have the script of the collectable attached. i don't know how to blend my collectable script and the "objective" script from the radar.

http://www.nuncio-rap.de
intel core i5-3570K CPU @ 3.40GHz; 8GB RAM // NVIDIA GeForce GTX560Ti
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 30th Oct 2016 03:01 Edited at: 30th Oct 2016 03:09
Hi Nuncio, this may help...



I had to change a few things to get it to work and deleted some code which I'm guessing is not needed as they were not global variables. I change the function and init names so rename file to collectable_objective.lua

All you need to do now is add this code to your collectable, in the properties set Static Mode: No.
No need for any other script or floor decal under the collectable.

Now test.

If you want the collectable to stay in area for next time then don't use the Destroy(e) command use a Hide(e) on a timer. Then it should come back after a set amount of time using Show(e).

If you need to change the colour of objective / collectable icons on the radar then watch DVader you tube videos here:

Using the radar script - How to use and configure by DVader

This is also a good thread How can erase the Objectives on the radar? by Old Larry

I hope this helps.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3
PM
nuncio
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 28th Jan 2015
Location: Schleswig Holstein, Germany
Posted: 31st Oct 2016 23:36 Edited at: 1st Nov 2016 00:36
i just tried it and it seems to work! great! thank you!
i don't have any ideas about scripting. i should let you know that this script is part of a three piece script. a starter, a collectable and a mission door. i built a small test script with your script and it worked. it counted the items down when i collected one. great.
i will now change this in my level and take a look what happens and tell here

edit:
yes, it's working! thank you! that solved my problems and gave a new look to my game. is it possible to place the radar a little higher? it's in the weapon HUD.
http://www.nuncio-rap.de
intel core i5-3570K CPU @ 3.40GHz; 8GB RAM // NVIDIA GeForce GTX560Ti
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 2nd Nov 2016 01:10 Edited at: 2nd Nov 2016 01:12
Hi Nuncio, if you use this link Radar updated with entity and change the radar script to this update you can change the x, y of the radar on screen. On lines 16 and 17 the x,y.

radarx=10 -- position x coordinates.
radary=80 -- position y coordinates.

Or watch the you tube by DVader above.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3
PM
nuncio
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 28th Jan 2015
Location: Schleswig Holstein, Germany
Posted: 2nd Nov 2016 22:26
yes, great! it works! thank you for your help
http://www.nuncio-rap.de
intel core i5-3570K CPU @ 3.40GHz; 8GB RAM // NVIDIA GeForce GTX560Ti
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 3rd Nov 2016 12:16 Edited at: 3rd Nov 2016 12:16
Your welcome
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3
PM
Loretta
7
Years of Service
User Offline
Joined: 13th Aug 2016
Playing: Generation Zero; Skyrim SE , Fallout 4, In VR- Pistol Whip,
Posted: 6th Dec 2016 23:33
Is there anyway to make the radar audible too?

The closer the objective, the louder the blip?
I am and have been a Web Designer/Photographer/Videographer/ Video Editor for 20 plus years.
I am just getting back into Gaming after many years of being too busy.
I use 2 Desktops and a Asus Laptop for work
My favorite is ; ASUS ROG G20- Desktop Intel Core i7-6700 -3.4Ghz - 16GB Memory - NVIDIA GeForce GTX 970-4GB - Windows 10 64bit
PM
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 20th Feb 2017 01:41
Hi Loretta, yes :- https://forum.game-guru.com/thread/217490
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 SLI mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3


A new competition running for GG
PM

Login to post a reply

Server time is: 2024-04-26 09:23:30
Your offset time is: 2024-04-26 09:23:30