Jump to content

Search the Community

Showing results for tags 'scripting'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Site Related
    • News & Announcement
    • FAQ
    • Website support
  • Site mods & Modding Teams
    • Los Angeles Mod
  • Emergency 4
    • General Talk
    • Multiplayer
    • Technical Related Support
    • Mission Related Support
    • Modding Related Support
    • European Modding
    • Mods
    • Mod Development and Concepts
  • Emergency 2012, Emergency 2013 & Emergency 2014
    • General Talk
    • Technical Related Support
    • Multiplayer
  • Emergency 5
    • General Talk
    • Multiplayer
    • Technical Related Support
    • Mission Related Support
    • Modding Related Support
    • Mods
  • Into the Flames
    • General Talk
    • Modding
  • Firefighting Simulator - The Squad
    • General
    • Multiplayer
    • Technical Related Support
  • Other Emergency games
    • General Help
    • Mission Help
    • Technical Help
  • Real Life
    • Emergency and Rescue services
    • Picture forum
  • Off Topic
    • [EN] Off Topic

Categories

  • English
    • Emergency 4
  • Dutch
  • Walkthroughs

Categories

  • Demos
  • Emergency 1
  • Emergency 2
  • Emergency 3
    • Small mods
    • Big Mods
    • Patches
  • Emergency 4
    • Small Mods
    • Big Mods
    • Patches
  • Emergency 5
    • Patches
    • Alterations and small modifications
    • Full Modifications
  • Modding
    • 3D Models
    • Sounds
    • Textures
  • Other Files
    • Videos
    • Music
  • Tools
  • Need For Speed: High Stakes and Hot Pursuit 2 Files
    • NFS:HS Civilian Vehicles
    • NFS:HS Emergency Vehicles
    • NFS:HS Parts for Vehicles
    • NFS:HS Modding Tools/Utilities
    • NFS:HS Mod Files
    • NFS:Hot Pursuit 2 Vehicles

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


ICQ


Yahoo


Skype


Steam


Location


Interests

Found 5 results

  1. I was wondering is there a way of setting groups of units, i.e the 3 or 4 who are based in a vehicle and hold them in an array or even a 2d array where both the unit name and its associated vehicle is held, so in a script you could give them way points using Virtual objects and have them enter and leave a vehicle as a group? Any help would be most appreciated as if i can get this one bit cracked i can get a few ideas of mine completed Thanks 7894rmnxj
  2. emergency-wiki.de had the various types and descriptions about scripting for emergency. I saw this and planned to translate each page and download it. Unfortunately, it is now either under construction or just gone for good. Where can I find a resource to do the scripts? Similar to knowing when programming c# or VB and you KNOW you have variable.tostring() method. Where is the resource to know the various methods and types in order to script? I can make out what some of the scripts are doing and how they work, but I really want to experiment in this area and I'm looking for something to assist me. I know it exist. Just looking for someone who can point me to it since the site I was going to use no longer exist. Thanks!
  3. Is there one around anywhere? Also not sure what I would have to change in the script so it only requires one person to get, or turns into one when dropped.
  4. Hey Emergency Planet. I am trying to make a submod for Hoppah's Los Angeles Mod 2.1. I have very little experience with scripting in Emergency 4 (although I do know some C++). I am trying to add a new command to soldiers: Get Grenade. I pretty much want to make a copy of the flashbang but make it explosive, and make a secondary command to retrieve and use it. This is for a military submod I am making... I'm not a trigger-happy maniac. Any ideas? As I am a complete newbie, I really need all the help I can get. My code so far is: object ThrowMolotov : CommandScript { ThrowMolotov() { SetValidTargets(ACTOR_FLOOR | ACTOR_OBJECT | ACTOR_VIRTUAL | ACTOR_HOUSE | ACTOR_OPEN_HOUSE); SetPossibleCallers(ACTOR_PERSON); SetIcon("throwmolotov"); SetCursor("throwmolotov"); } bool CheckPossible(GameObject *Caller) { if(!Caller->IsValid() || Caller->GetType() != ACTOR_PERSON || Caller->GetEquipment()!=EQUIP_BOTTLE) return false; return true; } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if(!Caller->IsValid() || Caller->GetEquipment()!=EQUIP_BOTTLE || Caller->GetID() == Target->GetID()) return false; if (Caller->GetType() != ACTOR_PERSON) return false; Person p(Caller); if(p.GetEnteredCarID() != -1) return false; return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Vector CmdPos, TargetPos; CmdPos = Game::GetCommandPos(); TargetPos = CmdPos; Person p(Caller); if(!p.IsValid()) return; if (p.GetThrowPosition(TargetPos)) { Caller->PushActionmove(ACTION_NEWLIST, TargetPos); Caller->PushActionTurnTo(ACTION_APPEND, CmdPos); } else { Caller->PushActionTurnTo(ACTION_NEWLIST, CmdPos); } Caller->PushActionThrowMolotov(ACTION_APPEND, CmdPos, 150000.f); Caller->PushActionRemoveEquipment(ACTION_APPEND); } }; object GetMolotov : CommandScript { GetMolotov() { SetValidTargets(ACTOR_FLOOR | ACTOR_OBJECT | ACTOR_VIRTUAL | ACTOR_HOUSE | ACTOR_OPEN_HOUSE); SetGroupID(CGROUP_GETEQUIPMENT); SetPossibleCallers(ACTOR_PERSON); SetNeedsCarWithFlagSet(OF_HAS_FLASHGRENADE); SetIcon("getmolotov"); SetCursor("getmolotov"); } bool CheckTarget(GameObject *Caller, Actor *Target, int childID) { if (!Caller->IsValid() || !Target->IsValid() || (Caller->GetID()==Target->GetID())) return false; if (Target->GetType()==ACTOR_VEHICLE) { Vehicle v(Target); if ((v.HasCommand("FlyTo") || v.HasCommand("VcmdDeInstallRope")) && !v.IsOnGround()) return false; } Person p(Caller); if(p.IsValid() && (p.IsCarryingPerson()||p.IsLinkedWithPerson()|| p.IsPulling() || p.GetEnteredCarID() != -1)) return false; GameObject obj(Target); if (Caller->GetObjectType()==TYPE_PERSON && Caller->GetEquipment()!=EQUIP_FLASHGRENADE && obj.IsValid() && obj.IsFlagSet(OF_HAS_FLASHGRENADE)) { return true; } return true; } void PushActions(GameObject *Caller, Actor *Target, int childID) { Vector TargetPos = Target->GetTargetPoint(Caller, TARGET_EQUIPMENTDOOR); Caller->PushActionmove(ACTION_NEWLIST, TargetPos); Caller->PushActionTurnTo(ACTION_APPEND, Target); Caller->PushActionGetEquipment(ACTION_APPEND, Target, EQUIP_BOTTLE); } };
  5. Hey guys! I am starting a brand new mod based off the town that I volly at, after the mod is done I am hoping that all the members that helped with the mod will help me to go onto another mod and hopefully have a great new modding team! So far I have the following people on the following positions: Mapping, Incidents, and Project Supervisor: Myself Lighting: search_destroy Models/Textures: mercurygrandmarquis1 Positions open: Another Modeler/Texture person; Scripter Thanks everyone! -JA
×
×
  • Create New...