Jump to content

trader5050

Members
  • Posts

    5
  • Joined

  • Last visited

trader5050's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello there, I have a command script (CmdJasonDispatcher.script) as follows: My understanding is that the game loads ALL scripts when the mod is loaded. So very confused as to why whenever I try to call it: Any ideas?
  2. Is there anything I can force to run every second? Only thing I can think of atm is force deploying an invisible object that runs in a loop with a 1 second sleep.
  3. Hello, I'm trying to expand upon the Miami Mod patrol capability by having units self-direct to incidents. The problem is that I can't seem to identify anything/anyone. I'm trying: GameObjectList list = Game::GetGameObjects(); for(int i=0; i<list.GetNumObjects(); i++) { GameObject obj = list.GetObject(i); /* cars */ if (obj.GetType()==TYPE_VEHICLE) { } /* people */ if (obj.GetType()==TYPE_PERSON) { /* injured? */ Person prsn(&obj); if (prsn.IsInjured() || prsn.IsComatose()) { Mission::PlayHint("Found an injured person!"); somethingToDo=true; } } /* start chase */ if (somethingToDo) { Mission::PlayHint("Found a rescue activity!"); sendRescue(v,obj); break; } } I was also checking for gangsters, etc., but nothing ever triggers. Any help is appreciated!
  4. Thanks for the help. I downloaded all of the SDK and combined into a single PDF for searching, so that's nice.
  5. Hello there, I have a few really basic questions: 1. What's the easiest way to edit/reload scripts for testing? Currently I have to completely re-open the game, load mod, start freeplay, get cops into a car and hit a cmd button just to test something. It's extremely time-consuming. 2. Is there any way to force-trigger an event for testing? 3. I can't seem to find an SDK reference anywhere. I don't even see a function list on any sites, despite some links seeming to indicate one exists. Any help? Thanks a bunch!
×
×
  • Create New...