TokyoRose Posted March 12, 2013 Share Posted March 12, 2013 Does anyone know how to do this? I found this thread here, but I need a bit more of a walkthrough. I know how to edit the input.cfg, and I've used the console to spawn items and money in the past, but I've never spawned an enemy before. It would make the game a lot more challenging if I could add an extra 10 (or 20 or 30 ) enemy troops EDIT: After a lot of poking around and experimenting, I've figured out how to spawn a unit, and make them an enemy, but they still won't shoot back at me. Does anyone know what I'm missing? These are the commands I'm entering in the console: CreateWaypoint("wp1", GetHero ()) <--- This creates a waypoint where my hero is currently positioned. CreateUnit (500, 1, "enemy", "wp1", 5) <--- This creates a Renegade soldier, as an enemy, positioned at the waypoint I created, at level 5. Link to comment Share on other sites More sharing options...
Knan Posted March 13, 2013 Share Posted March 13, 2013 https://web.archive.org/web/20040606165849/https://s2hq.com/articles.php?lng=en&pg=187 Giving them AI is the fiddly stuff. Link to comment Share on other sites More sharing options...
TokyoRose Posted March 13, 2013 Author Share Posted March 13, 2013 Thanks a lot Knan. I'm so desperate to figure this out that I've been reading translated posts on Russian Silent Storm forums ... none of my Googling led me to that page. I'll experiment and post back. Link to comment Share on other sites More sharing options...
TokyoRose Posted March 13, 2013 Author Share Posted March 13, 2013 YES!!! That worked brilliantly. Thanks Knan I'll experiment some more. I'd like to figure out how to make a small script for S3common.l to summon 5 or 6 enemy reinforcements with a simple console command (function sendReinforcements ... or something like that). In the meantime, though, I've got a lot of bad guys to shoot. Thanks again. Link to comment Share on other sites More sharing options...
TokyoRose Posted March 13, 2013 Author Share Posted March 13, 2013 I'll post this here for future reference in case anyone is interested. This is just the tip of the iceberg. A talented scripter would be able to make this into something special, but this definitely adds an extra challenge to a game that's already difficult. HOW TO SPAWN ENEMIES IN SILENT STORM (SENTINELS): 1) Add this line to input.cfg. I put it in the same place as the Save Game key binds: bind obj_under_cur 'X' <----- replace X with a key of your choosing 2) Open console, type summonunit 500 3) Move the mouse over the summoned unit, and press X. This unit is now a script variable with name 'ouc' (Object Under Cursor?). The console will tell you: 'Object saved to variable ouc'. 4) Type UnitSetPlayer(ouc,1) to make the unit an enemy 5) Type UnitSetNormalLogic(ouc) to give the enemy AI Unit ID #s: ID UserName ClassName Side2 Toki Scout Germany3 Axel Engineer Germany14 Klaus Sniper Germany34 Gari Medic Germany39 Gator SoldierUK Allies40 UK_officerColt1911 Enemy NPC41 Nessie Grenadier Allies42 Arvid Sniper Allies53 Rocco Grenadier Germany54 Fritz Soldier Germany58 Terror_RiflemanGarandM1 Enemy NPC61 Officer01axs Soldier NPC62 Officer02als Scout NPC63 Germ_soldierMP40 Enemy NPC64 Germ_officerWaltherP38 Enemy NPC65 Germ_sniperCarbine98k Enemy NPC66 Germ_grenadier Enemy NPC67 Germ_MG42 Enemy NPC68 Germ_medic Enemy NPC82 UK_soldierThompsonM1 Enemy NPC87 UK_soldierSTEN2 Enemy NPC89 UK_rocketPIAT Enemy NPC90 UK_sniperLieEnfieldN4 Enemy NPC92 UK_gunnerBRENMk1 Enemy NPC93 Machinegunner Enemy NPC94 Engineer Enemy NPC95 Ordinary Enemy NPC98 UKSoldier Enemy NPC99 Testforitems Enemy NPC100 Gunnar Scout Germany101 Dani Medic Germany102 Reggie Grenadier Germany103 Paco Soldier Germany104 Carm Scout Germany105 Mike Soldier Germany106 Tadas Sniper Germany107 Kenko Engineer Germany108 AxisGrenader Grenadier Germany109 Olli Grenadier Germany110 Ahmad Soldier Germany111 Zail Scout Germany112 Holly Engineer Germany113 Eagle Sniper Germany114 Viper Sniper Allies115 L.A. Engineer Allies116 Doug Engineer Allies117 Rowdy Grenadier Allies118 Elf ScoutUK Allies119 Bob Grenadier Allies120 Yves Medic Allies121 Ramos SoldierUK Allies122 Jerzey SoldierUK Allies123 Taras Grenadier Allies124 Zinaida Sniper Allies125 Oleg Engineer Allies126 Sook ScoutUK Allies127 Kate ScoutUK Allies128 Oz SoldierUK Allies129 Abala Medic Allies130 Matt ScoutUK Allies137 Hanke Enemy NPC138 GerRobot Soldier NPC139 Terror_OfficerColt1911 Enemy NPC140 Rus_soldierPPSh41 Enemy NPC141 RusOfficerTT Enemy NPC142 Terror_GunnerShatelro Enemy NPC143 Terror_GunnerBren Enemy NPC145 GermanAgent#1 Scout NPC147 Germ_EliteSoldierSTG43 Enemy NPC148 UK_EliteSoldierThompsonM1 Enemy NPC149 TerrorElite_SniperGarandM1 Enemy NPC150 GermanAgent#2 Enemy NPC151 CorruptOfficer Enemy NPC152 AlliesAgent Enemy NPC153 RussianScientist Enemy NPC154 Lebedev Enemy NPC155 Professor Enemy NPC156 FriendlyInformer Enemy NPC157 RusEngineer01 Enemy NPC158 Terror_EngineerMauserM712 Enemy NPC159 Germ_Engineer Enemy NPC160 CivilMale Enemy NPC161 DoubleAgent Enemy NPC162 CapturedAgent Enemy NPC163 CivilFemale Enemy NPC164 RusEngineer02 Enemy NPC165 AxisEngineer Engineer Germany166 AxisEngineerFemale Engineer Germany167 AxisMedicFemale Medic Germany168 AxisMedic Medic Germany169 AxisScoutFemale Scout Germany170 AxisScout Scout Germany171 AxisSniperFemale Sniper Germany172 AxisSniper Sniper Germany173 AxisSoldier Soldier Germany174 AxisSoldierFemale Soldier Germany175 AxisGrenaderFemale Grenadier Germany176 AlliesEngineer Engineer Allies177 AlliesEngineerFemale Engineer Allies178 AlliesGrenader Grenadier Allies179 AlliesMedic Medic Allies180 AlliesScoutFemale ScoutUK Allies181 AlliesScout ScoutUK Allies182 AlliesSniper Sniper Allies183 AlliesSniperFemale Sniper Allies184 AlliesSoldier SoldierUK Allies185 AlliesGrenaderFemale Grenadier Allies186 AlliesSoldierFemale SoldierUK Allies187 AlliesMedicFemale Medic Allies188 Germ_EliteRiflemanG41B Enemy NPC190 Assault_Agent Enemy NPC191 General_Unordinary_Killed Enemy NPC192 General_Survived Enemy NPC193 Defend_Russian_Engineer Enemy NPC194 Capture_Colonel Enemy NPC195 Free_Captured_Agent Scout NPC196 Capture_General Enemy NPC197 Saved_Courier Scout NPC198 Save_E_Scientist Enemy NPC199 Capture_Hanke Enemy NPC200 Capture_Stielmann Enemy NPC201 Capture_T_Boss Enemy NPC202 Captured_Officer Enemy NPC203 UK_soldierThompson1928 Enemy NPC204 UK_soldierM3A1 Enemy NPC205 UK_soldierSTEN3 Enemy NPC206 UK_soldierSTEN4 Enemy NPC207 UK_soldierSTEN5 Enemy NPC210 UK_soldierPPD40 Enemy NPC211 UK_soldierPPSh41 Enemy NPC212 UK_soldierPPSh41mod Enemy NPC213 UK_soldierPPS42 Enemy NPC214 UK_soldierPPS43 Enemy NPC215 UK_EliteSoldierPPS43 Enemy NPC216 UK_EliteSoldierSten5 Enemy NPC217 Rus_GunnerRPD Enemy NPC218 Rus_soldierPPD40 Enemy NPC219 Rus_soldierPPS42 Enemy NPC220 Rus_soldierPPS43 Enemy NPC221 Rus_soldierPPSh41mod Enemy NPC222 Rus_GunnerDP Enemy NPC226 Rus_riflemanAVS36 Enemy NPC227 Rus_riflemanSVT40 Enemy NPC228 UK_riflemanMosina1891 Enemy NPC229 UK_riflemanCarbine38 Enemy NPC230 UK_riflemanLieEnfieldN4 Enemy NPC231 UK_riflemanCarbineM1 Enemy NPC232 UK_riflemanGarandM1 Enemy NPC233 UK_riflemanAVS36 Enemy NPC234 UK_riflemanSVT40 Enemy NPC235 UK_riflemanMAS1936 Enemy NPC236 UK_riflemanPMauser98 Enemy NPC237 UK_riflemanPMauserM29 Enemy NPC238 UK_sniperMosina1891 Enemy NPC239 UK_sniperGarandM1 Enemy NPC240 UK_sniperSpringfieldM1917 Enemy NPC241 UK_sniperSVT40 Enemy NPC242 UK_gunnerDP Enemy NPC243 UK_gunnerRPD Enemy NPC244 UK_gunnerBrawningM1922 Enemy NPC245 UK_gunnerShatelroM1924 Enemy NPC246 UK_rocketBazooka Enemy NPC247 UK_EliteRiflemanCarbineM1 Enemy NPC248 UK_EliteRiflemanAVS36 Enemy NPC249 UK_EliteSniperGarandM1 Enemy NPC250 UK_EliteSniperSVT40 Enemy NPC251 UK_EliteGunnerShatelroM1922 Enemy NPC252 UK_EliteGunnerRPD Enemy NPC253 UK_EliteRocketBazooka Enemy NPC254 Defend_Informer Enemy NPC255 Free_our_agent Scout NPC256 Capture_G_Diversant Enemy NPC257 CapturedBritScientist Enemy NPC258 Capture_General Enemy NPC259 Defend_Russian_Engineer Enemy NPC260 Capture_T_Boss Enemy NPC261 Find_German_Intel_Officer Enemy NPC262 Capture_G_Agent2 Enemy NPC263 Capture_Double_Agent Enemy NPC264 Find_G_Technician Enemy NPC265 Recapture_Scientist Engineer NPC266 Capture_Stielmann Enemy NPC267 Capture_Hanke Enemy NPC268 Capture_G_Agent3 Enemy NPC269 Capture_G_ThftLeader Enemy NPC270 Capture_Officer_traitor Enemy NPC272 UK_officerLugerEng Enemy NPC273 UK_officerLugerP08 Enemy NPC274 UK_officerTT Enemy NPC275 UK_officerMauserK961926 Enemy NPC276 UK_officerMauserK961912 Enemy NPC277 UK_officerMauserM712 Enemy NPC278 UK_officerWebleyArmyExpress Enemy NPC279 UK_officerNagan Enemy NPC280 UK_officer Enemy NPC281 UK_officerWalterP38 Enemy NPC284 RussianBoss Enemy NPC285 Germ_EliteSoldierFG42 Enemy NPC286 TerrorEliteCmd_SVT40s Enemy NPC288 Germ_riflemanRifle33/40 Enemy NPC289 Germ_soldierMP38 Enemy NPC290 Germ_soldierBerettaM1938A Enemy NPC291 Germ_soldierBerettaM3842 Enemy NPC292 Germ_soldierSuomi Enemy NPC293 Germ_soldierMP40/2 Enemy NPC294 Germ_soldierSTG43 Enemy NPC295 Germ_soldierFG42 Enemy NPC296 Germ_soldierMP28 Enemy NPC297 Germ_riflemanG41B Enemy NPC298 Germ_riflemanManlicherKarkanoM38 Enemy NPC299 Germ_sniperG41B Enemy NPC300 Germ_sniperManlicherKarkanoM91/24 Enemy NPC301 Germ_gunnerMG42 Enemy NPC302 Germ_gunnerMG34 Enemy NPC303 Germ_gunnerZB26/30 Enemy NPC304 Germ_rocketPanzerfaust Enemy NPC305 Germ_rocketPanzerschreck Enemy NPC306 Germ_officerLugerP08 Enemy NPC307 Germ_officerZauer38X Enemy NPC308 Germ_officerMauserK-961926 Enemy NPC309 Germ_officerMauserK-961912 Enemy NPC310 Germ_officerMauserM.712 Enemy NPC311 Germ_officerNagan Enemy NPC312 Germ_EliteSoldierSuomi Enemy NPC313 Germ_EliteSniperManlicherKarkanoM91/24 Enemy NPC314 Germ_EliteGunnerMG42 Enemy NPC315 Germ_EliteRocketPanzerschreck Enemy NPC316 Germ_EliteSoldierMP40 Enemy NPC317 Sniper Enemy NULL318 Scout Enemy NULL319 OrdinarySHKAS Enemy NPC320 Medic Enemy NPC321 Grenader Enemy NPC322 Ordinary-Gatling12 Enemy NPC323 Javier Engineer Germany324 ECctGSld2 Enemy NPC325 EComESld1 Enemy NPC326 Germ_EliteGunnerChatellerault Enemy NPC329 Fake Enemy NPC331 GEVipGOf1 Enemy NPC332 ECctGSld1 Enemy NPC333 CivilMaleWebley Enemy NPC334 CivilMaleNagan Enemy NPC335 CivilMaleMP38 Enemy NPC336 CivilMaleMauserK961912 Enemy NPC337 CivilMaleMauserK961926 Enemy NPC338 CivilMaleMP40 Enemy NPC339 CivilMaleM3A1 Enemy NPC340 CivilMaleMP38HGrenade Enemy NPC341 CivilMaleMauserK961912Grenade Enemy NPC344 GLabGSld1 Enemy NPC347 UK_PUREsoldier Enemy NPC348 UK_officerSTEN5 Enemy NPC349 Germ_EliteGunnerMG34 Enemy NPC350 Germ_EliteGunnerMG42 Enemy NPC351 Germ_EliteRiflemanG41B Enemy NPC352 Germ_EliteRocketPanzerschreck Enemy NPC353 Germ_EliteSniperManlicherKarkanoM91/24 Enemy NPC354 Germ_EliteSoldierFG42 Enemy NPC355 Germ_EliteSoldierMP40 Enemy NPC356 Germ_EliteSoldierSTG43 Enemy NPC357 Germ_EliteSoldierSuomi Enemy NPC358 Germ_Engineer Enemy NPC359 Germ_grenadier Enemy NPC360 Germ_gunnerMG34 Enemy NPC361 Germ_gunnerMG42 Enemy NPC362 Germ_gunnerZB26/30 Enemy NPC363 Germ_medic Enemy NPC364 Germ_MG42 Enemy NPC365 Germ_officerLugerP08 Enemy NPC366 Germ_officerMauserK-961912 Enemy NPC367 Germ_officerMauserK-961926 Enemy NPC368 Germ_officerMauserM.712 Enemy NPC369 Germ_officerNagan Enemy NPC370 Germ_officerWaltherP38 Enemy NPC371 Germ_officerZauer38X Enemy NPC372 Germ_riflemanG41B Enemy NPC373 Germ_riflemanManlicherKarkanoM38 Enemy NPC374 Germ_riflemanRifle33/40 Enemy NPC375 Germ_rocketPanzerfaust Enemy NPC376 Germ_rocketPanzerschreck Enemy NPC377 Germ_sniperCarbine98k Enemy NPC378 Germ_sniperG41B Enemy NPC379 Germ_sniperManlicherKarkanoM91/24 Enemy NPC380 Germ_soldierBerettaM1938A Enemy NPC381 Germ_soldierBerettaM3842 Enemy NPC382 Germ_soldierFG42 Enemy NPC383 Germ_soldierMP28 Enemy NPC384 Germ_soldierMP38 Enemy NPC385 Germ_soldierMP40 Enemy NPC386 Germ_soldierMP40/2 Enemy NPC387 Germ_soldierSTG43 Enemy NPC388 Germ_soldierSuomi Enemy NPC389 CivilMaleNaganH Enemy NPC390 CivilMaleM3A1H Enemy NPC391 CivilMaleMP38H Enemy NPC392 Germ_civilBerettaM1938A Enemy NPC393 UK_EliteGunnerBrawningM1922 Enemy NPC394 EVipEOf1 Enemy NPC395 Officer03s Enemy NPC396 ELabESld1 Enemy NPC397 ELabEOf1 Enemy NPC398 ETwnEOf1 Enemy NPC399 GLabGSc1 Enemy NPC400 GLabGSld2 Enemy NPC402 GLabTOf1 Enemy NPC403 GFactGSld1 Enemy NPC404 GFactGAid Enemy NPC405 GTVipTSld1 Enemy NPC406 GTVipTSld2 Enemy NPC407 RComROf1 Enemy NPC408 RFactRSc1 Enemy NPC409 EBaseEBoss Enemy NPC410 EBaseEMed Enemy NPC411 EBaseEStor Enemy NPC412 EBaseETech Enemy NPC413 GBaseBoss Enemy NPC414 TerrorEliteGunnerMG34 Enemy NPC415 TerrorEliteSoldierMP40 Enemy NPC417 TerrorEliteRifleman3340 Enemy NPC418 TerrorEliteSniperManlicherKarkanoM91/24 Enemy NPC419 UK_Engineer Enemy NPC420 Radio Enemy NPC424 UK_CivWorkerA Enemy NPC425 UK_CivWorkerB Enemy NPC426 UK_CivBusiness Enemy NPC427 UK_CivCasual Enemy NPC428 UK_CivOrdinary Enemy NPC430 UK_CivFemale Enemy NPC431 Germ_civilNagan Enemy NPC432 UK_SpecialAgent_ColtSilencer Enemy NPC433 UK_SpecialAgent_STEN3 Enemy NPC434 UK_SpecialAgent_M3 Enemy NPC435 UK_SpecialAgent_Thompson1923 Enemy NPC436 UK_SpecialAgent_Colt Enemy NPC437 CivilMaleBazooka Enemy NPC438 CivilMaleLasgun Enemy NPC439 CivilEvilMale#1 Enemy NPC440 CivilEvilMale#4 Enemy NPC441 Helena Scout NPC442 CivilMaleMP41H Enemy NPC443 CivilMaleStenMkIIH Enemy NPC444 CivilMaleMP40Grenade Enemy NPC445 CivilMaleThompsonH Enemy NPC446 CivilMaleMauserK961926Grenade Enemy NPC447 CivilMaleRifle33/40HGrenade Enemy NPC448 TerrorEliteSoldierMP41 Enemy NPC449 TerrorEliteSoldierBerettaM1938A Enemy NPC450 Germ_officerWaltherP38(holster) Enemy NPC451 UK_officerSTEN4(holster) Enemy NPC452 Germ_officerBerettaM3842(holster) Enemy NPC453 Germ_officerZauer38X(holster) Enemy NPC454 UK_soldierFragGren Enemy NPC455 UK_soldierGren Enemy NPC456 Terror_RocketBazooka Enemy NPC457 TerrorEliteSoldierMP40Grenade Enemy NPC458 Germ_saboteurMP40 Enemy NPC459 Terror_RocketPanzerschreck Enemy NPC470 UK_saboteur Enemy NPC471 CivilMale2 Enemy NPC472 CivilMale3 Enemy NPC473 CivilMaleScientist Enemy NPC474 CivilMaleScientist2 Enemy NPC475 CivilMaleScientist3 Enemy NPC476 CivilMaleEngineer Enemy NPC477 CivilMaleEngineer2 Enemy NPC478 CivilMaleEngineer3 Enemy NPC479 CivilFemale2 Enemy NPC480 Rus_WinterSoldierPPD40 Enemy NPC482 Ordinary-LasGun Enemy NPC483 Ordinary-AGS Enemy NPC484 PKPilotM1-PK_A Enemy NPC485 PKPilotSTG43-PK_G Enemy NPC486 PKPilotFG42-PK_G Enemy NPC487 PKPilotGarandM1-PK_G Enemy NPC488 PKPilotTT-PK_G Enemy NPC489 PKPilotSTG43-PK_L Enemy NPC490 PKPilotSTG43-PK_A Enemy NPC491 PKPilotM1-PK_G Enemy NPC492 PKPilotM1-PK_L Enemy NPC493 PKPilotFG42-PK_A Enemy NPC494 PKPilotFG42-PK_L Enemy NPC495 PKPilotGarandM1-PK_L Enemy NPC496 PKPilotGarandM1-PK_A Enemy NPC497 PKPilotTT-PK_L Enemy NPC498 PKPilotTT-PK_A Enemy NPC499 UK_saboteur_officerNagan Enemy NPC500 Terror_RiflemanAVS36 Enemy NPC502 Terror_RiflemanSVT40 Enemy NPC503 Terror_RiflemanG41B Enemy NPC504 Terror_SniperGarandM1 Enemy NPC505 Terror_SniperSVT40 Enemy NPC506 Terror_SniperManlicherKarkanoM91/24 Enemy NPC507 Terror_SoldierBerettaM3842 Enemy NPC508 Terror_SoldierSuomi Enemy NPC509 Terror_SoldierMP43 Enemy NPC510 Terror_SoldierFG42 Enemy NPC511 Terror_SoldierThompsonM1 Enemy NPC512 Terror_SoldierThompson1928 Enemy NPC513 Terror_SoldierStenMkV Enemy NPC514 Terror_SoldierPPSh41 Enemy NPC515 Terror_SoldierPPS43 Enemy NPC516 Terror_GunnerRPD Enemy NPC517 Terror_OfficerZauer38X Enemy NPC518 Terror_OfficerWaltherP38 Enemy NPC519 Terror_OfficerTT Enemy NPC520 Terror_OfficerMauserM712 Enemy NPC521 Terror_EngineerColt1911 Enemy NPC522 Terror_EngineerTT Enemy NPC523 Terror_EngineerWaltherP38 Enemy NPC524 Terror_EngineerZauer38X Enemy NPC525 TerrorElite_SniperSVT40 Enemy NPC526 TerrorElite_SniperManlicherKarkanoM91/24 Enemy NPC527 TerrorElite_SoldierMP43 Enemy NPC528 TerrorElite_SoldierFG42 Enemy NPC529 TerrorElite_SoldierPPSh41 Enemy NPC530 TerrorElite_SoldierThompsonM1 Enemy NPC531 TerrorElite_GunnerRPD Enemy NPC532 TerrorElite_GunnerShatelro Enemy NPC533 TerrorElite_GunnerMG42 Enemy NPC534 TerrorElite_RocketBazooka Enemy NPC535 TerrorElite_RocketPanzerschreck Enemy NPC536 TerrorElite_RocketLasergun Enemy NPC537 TerrorEliteCmd_MP43 Enemy NPC538 TerrorEliteCmd_MG42 Enemy NPC539 TerrorEliteCmd_Bazooka Enemy NPC540 TerrorEliteCmd_Lasergun Enemy NPC541 Germ_saboteur_officerLugerP08 Enemy NPC542 Terror_PkPilot Enemy NPC543 Rus_WinterSoldierPPS43 Enemy NPC544 Ordinary-AGS_02 Enemy NPC545 OrdinaryPiat Enemy NPC546 OrdinaryBoys Enemy NPC547 OrdinaryVickers Enemy NPC548 Terror_GunnerMG42 Enemy NPC549 Ordinary-Skel-LasGun Enemy NPC551 Test Enemy NPC586 UK_gunnerBrawningM1922 Enemy NPC587 UK_gunnerBRENMk1 Enemy NPC588 UK_gunnerDP Enemy NPC589 UK_gunnerRPD Enemy NPC590 UK_gunnerShatelroM1924 Enemy NPC591 UK_officerColt1911 Enemy NPC592 UK_officerLugerEng Enemy NPC594 UK_officerMauserK961912 Enemy NPC595 UK_officerMauserK961926 Enemy NPC596 UK_officerMauserM712 Enemy NPC597 UK_officerNagan Enemy NPC599 UK_officerSTEN5 Enemy NPC600 UK_officerTT Enemy NPC601 UK_officerWalterP38 Enemy NPC602 UK_officerWebleyArmyExpress Enemy NPC604 UK_riflemanAVS36 Enemy NPC605 UK_riflemanCarbine38 Enemy NPC606 UK_riflemanCarbineM1 Enemy NPC607 UK_riflemanGarandM1 Enemy NPC608 UK_riflemanLieEnfieldN4 Enemy NPC609 UK_riflemanMAS1936 Enemy NPC610 UK_riflemanMosina1891 Enemy NPC611 UK_riflemanPMauser98 Enemy NPC612 UK_riflemanPMauserM29 Enemy NPC613 UK_riflemanSVT40 Enemy NPC614 UK_rocketBazooka Enemy NPC615 UK_rocketPIAT Enemy NPC618 UK_sniperGarandM1 Enemy NPC619 UK_sniperLieEnfieldN4 Enemy NPC620 UK_sniperMosina1891 Enemy NPC621 UK_sniperSpringfieldM1917 Enemy NPC622 UK_sniperSVT40 Enemy NPC625 UK_soldierM3A1 Enemy NPC626 UK_soldierPPD40 Enemy NPC627 UK_soldierPPS42 Enemy NPC628 UK_soldierPPS43 Enemy NPC629 UK_soldierPPSh41 Enemy NPC630 UK_soldierPPSh41mod Enemy NPC631 UK_soldierSTEN2 Enemy NPC632 UK_soldierSTEN3 Enemy NPC633 UK_soldierSTEN4 Enemy NPC634 UK_soldierSTEN5 Enemy NPC635 UK_soldierThompson1928 Enemy NPC636 UK_soldierThompsonM1 Enemy NPC655 Germ_gunnerMG34 Enemy NPC656 Germ_gunnerMG42 Enemy NPC657 Germ_gunnerZB26/30 Enemy NPC660 Germ_officerBerettaM3842(holster) Enemy NPC661 Germ_officerLugerP08 Enemy NPC662 Germ_officerMauserK-961912 Enemy NPC663 Germ_officerMauserK-961926 Enemy NPC664 Germ_officerMauserM.712 Enemy NPC665 Germ_officerNagan Enemy NPC666 Germ_officerWaltherP38 Enemy NPC667 Germ_officerWaltherP38(holster) Enemy NPC668 Germ_officerZauer38X Enemy NPC669 Germ_officerZauer38X(holster) Enemy NPC670 Germ_riflemanG41B Enemy NPC671 Germ_riflemanManlicherKarkanoM38 Enemy NPC672 Germ_riflemanRifle33/40 Enemy NPC673 Germ_rocketPanzerfaust Enemy NPC674 Germ_rocketPanzerschreck Enemy NPC677 Germ_sniperCarbine98k Enemy NPC678 Germ_sniperG41B Enemy NPC679 Germ_sniperManlicherKarkanoM91/24 Enemy NPC680 Germ_soldierBerettaM1938A Enemy NPC681 Germ_soldierBerettaM3842 Enemy NPC682 Germ_soldierFG42 Enemy NPC683 Germ_soldierMP28 Enemy NPC684 Germ_soldierMP38 Enemy NPC685 Germ_soldierMP40 Enemy NPC686 Germ_soldierMP40/2 Enemy NPC687 Germ_soldierSTG43 Enemy NPC688 Germ_soldierSuomi Enemy NPC689 RusOfficerNagan Enemy NPC690 Rus_WinterGunnerDP Enemy NPC691 Rus_riflemanMosina Enemy NPC692 Rus_WinterRiflemanMosinaSnipe Enemy NPC693 Rus_WinterRiflemanSVT40 Enemy NPC694 Rus_WinterRiflemanAVS36 Enemy NPC695 Rus_WinterRiflemanMosina Enemy NPC697 Rus_WinterRiflemanSVT40Snipe Enemy NPC698 Rus_riflemanMosinaSnipe Enemy NPC699 Rus_riflemanSVT40Snipe Enemy NPC701 UK_officerLugerP08 Enemy NPC702 RusOfficerPPSh41 Enemy NPC703 Rus_soldierGrenLight Enemy NPC704 Rus_soldierGrenHeavy Enemy NPC705 Rus_WinterSoldierGrenHeavy Enemy NPC706 Rus_WinterSoldierGrenLight Enemy NPC707 Rus_WinterGunnerRPD Enemy NPC708 Rus_WinterSoldierPPS42 Enemy NPC709 Rus_WinterSoldierPPSh41Mod Enemy NPC710 Rus_WinterSoldierPPSh41 Enemy NPC711 Terror_OfficerSTG43 Enemy NPC712 Terror_EngineerEmpty Enemy NPC713 CivilMaleEngineer4 Enemy NPC714 Helena Enemy NPC715 GTVipTOf1 Enemy NPC716 Germ_soldierMP41 Enemy NPC717 Germ_Engineer(holster) Enemy NPC720 USA_Soldier Engineer Allies721 USA_Officer Engineer Allies722 Soldier Enemy NPC723 Officer Enemy NPC724 0ld_RTLabTSld1 Enemy NPC725 TutorialOfficer-Colt1911 Enemy NPC726 TutorialOfficer-Nagan Enemy NPC728 TutorialSoldier-M3A1 Enemy NPC729 TutorialSniper-LieEnfieldN4 Enemy NPC730 TutorialTrainee Soldier 731 Italy_Officer Enemy NPC732 Italy_Soldier Enemy NPC733 RTLabBoss Enemy NPC734 RTLabTSld1 Enemy NPC735 CivilEvilMale#3 Enemy NPC736 CivilEvilMale#2 Enemy NPC737 HelenainPK Enemy NPC738 Boss Enemy NULL740 facegen Unknown NULL741 Germ_soldier_empty Enemy NPC742 Germ_EliteSoldierMP41 Enemy NPC743 Germ_soldierMP41 Enemy NPC745 AlliedGrenadier Enemy NPC833 AlliedGunner Enemy NPC834 AlliedOfficer Enemy NPC835 AlliedRifleman Enemy NPC836 AlliedRocket Enemy NPC837 AlliedSniper Enemy NPC838 AlliedSoldier Enemy NPC839 AlliedGunner Enemy NPC840 AlliedOfficer Enemy NPC841 AlliedRifleman Enemy NPC842 AlliedRocket Enemy NPC843 AlliedSniper Enemy NPC844 AlliedSoldier Enemy NPC845 AxisGrenadier Enemy NPC846 AxisGunner Enemy NPC847 AxisOfficer Enemy NPC848 AxisRifleman Enemy NPC849 AxisRocket Enemy NPC850 AxisSniper Enemy NPC851 AxisSoldier Enemy NPC852 AxisGrenadier Enemy NPC853 AxisGunner Enemy NPC854 AxisOfficer Enemy NPC855 AxisRifleman Enemy NPC856 AxisRocket Enemy NPC857 AxisSniper Enemy NPC858 AxisSoldier Enemy NPC859 RussianGrenadier Enemy NPC860 RussianGunner Enemy NPC861 RussianOfficer Enemy NPC862 RussianRifleman Enemy NPC863 RussianSniper Enemy NPC864 RussianSoldier Enemy NPC865 RussianGrenadier Enemy NPC866 RussianGunner Enemy NPC867 RussianRifleman Enemy NPC868 RussianSniper Enemy NPC869 RussianSoldier Enemy NPC870 TerrGrenadier Enemy NPC871 TerrGunner Enemy NPC872 TerrOfficer Enemy NPC873 TerrRifleman Enemy NPC874 TerrSniper Enemy NPC875 TerrSoldier[0] Enemy NPC876 TerrSoldier[1] Enemy NPC877 RussianRocket Enemy NPC878 RussianRocket Enemy NPC879 TerrRocket Enemy NPC880 TerrorEliteGunnerChattelerault Enemy NPC881 TerrorEliteSniperMauser98k Enemy NPC882 ELabDouble Enemy NPC883 Germ_riflemanRifle33/40 WeakEnemy NPC884 Germ_soldierMP38 WeakEnemy NPC885 Germ_officerNagan WeakEnemy NPC887 Male Unknown Allies888 Female Unknown Allies889 FFightTPA Enemy NPC900 Brit_Female Enemy NPC901 Germ_Female Enemy NPC902 Brit_CivilianMale Enemy NPC903 Brit_Engineer Enemy NPC904 Germ_Engineer Enemy NPC905 Rus_Engineer Enemy NPC906 THO_Engineer Enemy NPC907 Brit_Scientist Enemy NPC908 Rus_Scientist Enemy NPC909 Germ_Elite_Soldier Enemy NPC910 Germ_Officer Enemy NPC911 Germ_Soldier Enemy NPC912 UK_Elite_Soldier Enemy NPC913 UK_Officer Enemy NPC914 UK_Soldier Enemy NPC916 Rus_Soldier Enemy NPC917 Rus_Officer Enemy NPC918 Terror_Soldier Enemy NPC919 Terror_Officer Enemy NPC920 Terror_Elite_Soldier Enemy NPC921 Germ_gunnerChatellerault Enemy NPC922 Germ_sniperRifle33/40 Enemy NPC923 TestFritz Soldier NULL924 TerrorEliteSniperRifle3340 Enemy NPC925 UK_SpecialAgent_MauserM712 Enemy NPC926 UK_officerSTEN3(holster) Enemy NPC927 UK_EliteSoldierSten3 Enemy NPC928 UK_officerPPS43 Enemy NPC929 Germ_EliteSniperMauser98kSilencer Enemy NPC930 CivilFemale3 Enemy NPC931 CivilFemale1 Enemy NPC932 Germ_EliteGunnerZB26/30 Enemy NPC933 UK_SPEC_soldierGren Enemy NPC934 UK_SPEC_soldierFragGren Enemy NPC935 CivilMale01Axis Enemy NPC936 CivilMale02Axis Enemy NPC937 CivilMale01Allies Enemy NPC938 CivilMale02Allies Enemy NPC939 CivilMale03Axis Enemy NPC940 CivilMale04Axis Enemy NPC941 CivilMale03Allies Enemy NPC942 CivilMale04Allies Enemy NPC943 UK_Super_SpecialAgent_Colt Enemy NPC944 CivilFemale01Allies Enemy NPC945 CivilFemale02Allies Enemy NPC946 CivilFemale02Axis Enemy NPC947 CivilFemale01Axis Enemy NPC948 UK_Super_SpecialAgent_M3 Enemy NPC949 UK_Super_SpecialAgent_STEN3 Enemy NPC950 UK_Super_SpecialAgent_M712 Enemy NPC951 UK_Super_SpecialAgent_PPD Enemy NPC952 Italy_Soldier_Berreta Enemy NPC953 Italy_Soldier_Chattelrault Enemy NPC955 Italy_Officer Enemy NPC956 EBasePKPerson Enemy NPC957 Ztest Enemy NPC959 Italy_Soldier_Berreta Enemy NPC961 Germ_EliteGunnerMG34 Enemy NPC962 TerrorNinja Enemy NPC963 TerrorNinjaLeader Enemy NPC964 Germ_smallgrenadier Enemy NPC965 Terror_SniperMauser98kSilenced&Scoped Enemy NPC968 Terror_EngineerMauserM712 Enemy NPC970 Terror_EngineerWebley Enemy NPC973 Terror_GunnerMG34 Enemy NPC974 Terror_GunnerLewis Enemy NPC978 Terror_OfficerSTG43 Enemy NPC979 Terror_OfficerFG42 Enemy NPC980 Terror_OfficerLugerP08 Enemy NPC982 Terror_PkPilot Enemy NPC983 Terror_RiflemanAVS36 Enemy NPC984 Terror_RiflemanG41B Enemy NPC985 Terror_RiflemanGarandM1 Enemy NPC986 Terror_RiflemanSVT40 Enemy NPC989 Terror_SniperGarandM1 Enemy NPC990 Terror_SniperManlicherKarkanoM91/24 Enemy NPC993 Terror_SoldierBerettaM3842 Enemy NPC994 Terror_SoldierFG42 Enemy NPC996 Terror_SoldierPPD40 Enemy NPC997 Terror_SoldierPPS42 Enemy NPC998 Terror_SoldierStenMkIII Enemy NPC999 Terror_SoldierSuomi Enemy NPC1000 Terror_SoldierM3A1 Enemy NPC1001 Terror_SoldierThompsonM1 Enemy NPC1002 TerrorElite_GunnerMG42 Enemy NPC1003 TerrorElite_GunnerRPD Enemy NPC1004 TerrorElite_GunnerMG34 Enemy NPC1008 TerrorElite_SniperSilencedMauser98k Enemy NPC1009 TerrorElite_SniperManlicherKarkanoM91/24 Enemy NPC1010 TerrorElite_SniperSVT40 Enemy NPC1011 TerrorElite_SoldierFG42 Enemy NPC1012 TerrorElite_SoldierMP43 Enemy NPC1013 TerrorElite_SoldierPPSh41 Enemy NPC1014 TerrorElite_SoldierThompsonM1 Enemy NPC1016 TerrorEliteCmd_Lasergun Enemy NPC1017 TerrorEliteCmd_MG42 Enemy NPC1018 TerrorEliteCmd_MP43 Enemy NPC1019 TerrorEliteCmd_PanzerShreck Enemy NPC1020 Terror_GunnerDP Enemy NPC1021 PKPilot_Sceleton Enemy NPC1022 PKPilot_RedHelper_Gatling Enemy NPC1023 PKPilot_RedHelper_AGS Enemy NPC Link to comment Share on other sites More sharing options...
Zombie Posted March 15, 2013 Share Posted March 15, 2013 Good stuff Tokyo! Just a question though, does this line: 4) Type UnitSetPlayer(ouc,1) to make the unit an enemy Specifically the (ouc,1) make the enemy Level 1? If not, is there a way to spawn an enemy unit at the level of my choosing? - Zombie Link to comment Share on other sites More sharing options...
TokyoRose Posted March 15, 2013 Author Share Posted March 15, 2013 Hey Zombie. The short answer to your question: Grab the unit with ouc. Now: UnitSetXPLevel(ouc,10). This will make the unit level 10. The long answer: The (ouc,1) tells the game that the unit you grabbed with the obj_under_cur (ouc) will be made to join your side (0), the enemy side (1), or neutral (2). I'm a total amateur at this, but yes, there is a way to spawn an enemy at a higher level, with this command: CreateUnit(500,1,"bob","wp99",9) The first number (500) is the unit ID, which I listed in the post above. The second number (1), says that it's an enemy (0 would make them join your side, and 2 is neutral). "bob" is the name I'm giving the unit, which could be used for other commands, I think. GetUnit("bob"), for example, although I don't know how that works. 9 is the unit's level. "wp99" -- this is tricky. This is the waypoint where the unit will appear. I don't know how to find the names of waypoints on an existing map. It would be nice to have the enemy spawn in a random location, but I don't know how. However, I do know how to create a new waypoint. Open the console and type: CreateWaypoint("wp99",GetHero()) This will create a waypoint ("wp99") where your hero is currently standing. Now, when you enter the CreateUnit command above, the enemy will be spawned at beside your hero. I think you can also create a waypoint like this: CreateWaypoint("wp777",ouc). This will create a waypoint with an object (like a door) that you've grabbed with ouc. I don't think you can grab a patch of grass or pavement with ouc -- it has to be something that can be highlighted with the cursor. I suppose you could highlight an enemy, grab him with ouc, and then use the enemy to set the waypoint and spawn enemies on top of the first enemy. Make sense? And now ... My preferred method to spawn enemies, until I learn how to do things properly, is this: 1) Spawn a unit using summonunit 2) When the unit spawns beside your squad, select the unit and teleport them somewhere else on the map. You can teleport by adding this line to your input.cfg: bind cheat_teleport 'X' 3) Once you've teleported them, use UnitSetPlayer(ouc,1) to make the unit an enemy and UnitSetNormalLogic(ouc) to give the unit a brain. You can then use UnitSetXPLevel(ouc,5) to set the unit to level 5, for example. 4) Note that if you teleport the unit to a place where the enemy can see them, the enemy will probably open fire. Try to find a point on the map that is unoccupied to teleport your new units. You can make the unit an enemy before teleporting ... but then I don't know how to teleport them. Obviously this is a clumsy way to spawn enemies, but if you've got quick fingers you can spawn in another 10 or 15 or 20 enemies in just a few minutes. This can be extremely interesting if you're trying to hold a house against endless waves of enemies I'm hoping someone like Komik or Novik will pipe in and tell me how to create a script in S3common so that I can summon a mixed squad of five or six enemies at a time with one simple console command. I know it can be done with just a few lines of script, I just don't know how to do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now