Thats the important section of the script. If you select the Scout class he will set the health, armor, speed and give the items; But i also want him to have the radar.
You can see there is no radar dofile in the Rifleman.
It works perfectly, but if you CHANGE the classes AFTER choose Scout (with radar) you will still have the radar, cuz the file has already been triggered by the "dofile".
To solve that I would need a
undofile("sys/lua/war/radar.lua")
and I dont think that exists. Is there any thing I can do to deactivate the radar script when the player chooses ANY non-radar classes?
Any possible solution is welcome.
And, yes, I am a lua noob.
But the final script is really awesome, so i really need help.
Any suggestions?