03.12.2015, 16:23
Hello, I was hoping somebody could help me out and point me in the right direction with how I could accomplish this.
I've spent a bit of time trying this myself before coming for help but just can't get it to work, What I'm trying to do is create random RP events at a random time between every 15 - 60 minutes for example for my Fire Department faction.
Example: I want to code in a bunch of coordinates that will be randomly selected to use and there be an automatic 911 call for that location for a fire for the fire fighters, And I'd like to use a check with GetPlayerPos(); and IsPlayerInRangeOfPoint(); to check if a fireman has actually responded to the call and only then will a timer start and once that timer is done the call clears.
If I could just get the barebones things needed or somebody tell me how I should do it, I'd rather get pointed in the right direction than just have the code handed to me so I can learn it.
Thank you.
I've spent a bit of time trying this myself before coming for help but just can't get it to work, What I'm trying to do is create random RP events at a random time between every 15 - 60 minutes for example for my Fire Department faction.
Example: I want to code in a bunch of coordinates that will be randomly selected to use and there be an automatic 911 call for that location for a fire for the fire fighters, And I'd like to use a check with GetPlayerPos(); and IsPlayerInRangeOfPoint(); to check if a fireman has actually responded to the call and only then will a timer start and once that timer is done the call clears.
If I could just get the barebones things needed or somebody tell me how I should do it, I'd rather get pointed in the right direction than just have the code handed to me so I can learn it.
Thank you.