Scripts / Create a 2nd Objective with a different color.

Author
Message
Robsdroid215
5
Years of Service
User Offline
Joined: 20th Dec 2018
Location:
Posted: 12th Jan 2019 17:48
How do I make a 2nd objective color in the Radar? Say my game has 2 objective types... and I want the radar to reflect 2 types...

Also I have no coding or scripting experience at all... Zero, Zilch...

Example
Barrel1 = objective.lua (yellow) <- This I can do
Barrel2 = objective2.lua (white) <- This I can not do

What I think I know:
- Create ''radar-white.png' in the scriptbank\radar folder
- Add 'radarImageWhite = 0' in the radar.lua header
- Add 'radarImageWhite = LoadImage ( "scriptbank\\radar\\radar-white.png" )' in the radar.lua function radar_int
- My guess is I need to write a 'function addObjective2 (i)'

2 Questions
1) How do I write the function for a 2nd objective in the radar.lua?



2) How would I write an objective_2.lua and reference my new objective2 function in the radar.lua.



Thank you in advance for your assistance.
PM

Login to post a reply

Server time is: 2024-04-25 11:29:43
Your offset time is: 2024-04-25 11:29:43