[Question] Kit Spawning?

Making or wanting help making your own asset? Check in here
Post Reply
BigDaddyMcFatSacks
Posts: 27
Joined: 2008-03-26 02:12

[Question] Kit Spawning?

Post by BigDaddyMcFatSacks »

Hello all, This mod is great. Anyway, I have been using the map editor and I can get my map to load and work, but I can't get the kits to spawn. I have added the commands

run ../../objects/Kits/kit_spawner_defs.con
run ../../objects/common/spawners/spawners_common.con

and added

gameLogic.setTeamDropVehicle 1 "mark_team1"
gameLogic.setTeamDropVehicle 2 "mark_team2"

as well as adding the

rem USMC VERSUS MEC
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "US"

gameLogic.setTeamLanguage 1 "MEC"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_mec"
gameLogic.setTeamFlag 2 "flag_us"

gameLogic.setKit 1 0 "mec_riflemanab" "mec_heavy_soldier"
gameLogic.setKit 2 0 "us_riflemanAB" "us_heavywhite_soldier"

gameLogic.setKit 1 1 "mec_rifleman" "mec_heavy_soldier"
gameLogic.setKit 2 1 "us_rifleman" "us_heavy_soldier"

gameLogic.setKit 1 2 "mec_engineer" "mec_heavy_soldier"
gameLogic.setKit 2 2 "us_engineer" "us_heavywhite_soldier"

gameLogic.setKit 1 3 "mec_medic" "mec_lightarmor_soldier"
gameLogic.setKit 2 3 "us_medic" "us_lightarmor_soldier"

gameLogic.setKit 1 4 "mec_officer" "mec_heavy_soldier"
gameLogic.setKit 2 4 "us_officer" "us_heavywhite_soldier"

all to the init.con file. But when I spawn and try to request a kit it says I must be near a CP, APC, etc. I have 2 CP (1 for each side) and 2 spawn points set so I can test the map and neither side can spawn kits. I have searched and can't figure out what is happening. Any ideas? Thanks FatSacks
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

Image
BigDaddyMcFatSacks
Posts: 27
Joined: 2008-03-26 02:12

Post by BigDaddyMcFatSacks »

Hi, Thanks for the quick reply. I have been going through the audit and the other tutorials you guys havefor days now (they are very helpful)and still can't seem to figure out why the kits won't spawn. I have followed step 7 on the audit page exactly as far as I can tell, yet kits still won't spawn. Any ideas what might be the problem? Thanks FatSacks
BigDaddyMcFatSacks
Posts: 27
Joined: 2008-03-26 02:12

Post by BigDaddyMcFatSacks »

Got it working. Think my problem was related to SGID. They were all set to -1 by default and I changed them to be in order 1,2,3,4 per the audit link you put up. Thanks, FatSacks
Post Reply

Return to “PR:BF2 Community Modding”