Jump to content
nbrown8568

Help With Pcmd Commands

Recommended Posts

On ‎5‎/‎2‎/‎2016 at 2:03 PM, nbrown8568 said:

Can I create a new Pcmd Command? I want to create PcmdCallTransportVan.

I want to create a LACallTransportVan.script, based on LACallPatrolCar.script.

How do I go about it?

Norm,

You can copy and paste the patrol car script, name it what you want, then in the script near the top there is going to be what looks something like

 

const char VO_SPAWN_POLICE02R[]   = "spawn_police2r";
const char OBJ_OFFICER_M[]   = "mod:Prototypes/Persons/03 LA Police/lapd_officer_m.e4p";
const char OBJ_OFFICER_LASD[]   = "mod:Prototypes/Persons/03 LA Police/lasd_officer.e4p";
const char OBJ_OFFICER_CHP[]   = "mod:Prototypes/Persons/03 LA Police/chp_officer.e4p";
const char OBJ_TRAFFIC_OFFICER_LASD[]  = "mod:Prototypes/Persons/03 LA Police/lasd_traffic_officer.e4p";
const char OBJ_TRAFFIC_OFFICER_CHP[]  = "mod:Prototypes/Persons/03 LA Police/chp_traffic_officer.e4p";
const char OBJ_BATTALION_CHIEF[]  = "mod:Prototypes/Persons/02 LA Fire Department/battalion_chief.e4p";
const char OBJ_EMS_CAPTAIN[]   = "mod:Prototypes/Persons/01 LA Ambulance/ems_paramedic_captain.e4p";
const char PROTO_CV_LAPD[]    = "mod:Prototypes/Vehicles/03 LA Police/cv_lapd.e4p";
const char PROTO_CV_CHP[]    = "mod:Prototypes/Vehicles/03 LA Police/cv_chp.e4p";
const char PROTO_CV_LASD[]    = "mod:Prototypes/Vehicles/03 LA Police/cv_lasd.e4p";
const char PROTO_CHARGER_LAPD[]   = "mod:Prototypes/Vehicles/03 LA Police/dodge_charger_lapd.e4p";
const char UNNAMED[]     = "Unnamed";

const char OBJ_OFFICER_ATF[]  = "mod:Prototypes/Persons/03 LA Police/atf_agent.e4p";
const char OBJ_OFFICER_BP[]   = "mod:Prototypes/Persons/03 LA Police/bp_officer.e4p";
const char PROTO_BPAT_DC[] = "mod:Prototypes/Vehicles/03 LA Police/bpat_dodge_charger.e4p";
const char PROTO_ATF_CV[] = "mod:Prototypes/Vehicles/03 LA Police/ATF_cv.e4p";

object PcmdCallPatrolCar : CommandScript

 

now these are file paths to the vehicle prototypes, all you must do is change the following ones:

const char PROTO_CV_LAPD[]    = "mod:Prototypes/Vehicles/03 LA Police/cv_lapd.e4p";
const char PROTO_CV_CHP[]    = "mod:Prototypes/Vehicles/03 LA Police/cv_chp.e4p";
const char PROTO_CV_LASD[]    = "mod:Prototypes/Vehicles/03 LA Police/cv_lasd.e4p";
const char PROTO_CHARGER_LAPD[]   = "mod:Prototypes/Vehicles/03 LA Police/dodge_charger_lapd.e4p";

 

Change them to the path of the transport van. I hope this works for you as my scripting knowledge is very limited, but yeah, I think that should work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...