PDA

View Full Version : Spawn additional Units at Start


Franticc
07-30-2008, 09:26 AM
Hi all,

I'm tryin to find a way to spawn additional Units at start on a Multiplayer Map (Dozer or whatever). But the only way to spawn units i've found, is for specific "Teams".
But i want to spawn units for specific "starting Positions".

Example:
- If Player1 is American -> Spawn 2 Dozer at Waypoint X
- If Player1 is GLA -> Spawn 2 Workers at Waypoint X
- ....

You know what i mean?
I hope so^^

I hope someone can help me.

Greetings from Germany and excuse my bad english :wave:
Franticc

nyarlathotep
07-30-2008, 04:19 PM
I'm no modder, but spawing bulldozers should be rather easy... Just put a bulldozer somewhere that has the "been sniped by Jarmen Kell" thingy...

GLA workers could be a problem, although you could always try putting a "civil tech side" GLA supply depot. (As done in one of the GLA campagnes where you have to fight a rogue GLA commander, and the Chines try to take you from behind, and you've got those trucs with nuclear warheads on them)

Although technically speaking, it's not real spawning, because you'll have to hardcode them into the map.

Hope that this meagre advise helped you

chaoscontrol512
07-30-2008, 10:32 PM
You're going to have to modify the SkirmishScripts.scb file to do that. I can't offer you much more help than that, because I tried importing the scripts and my World Builder ceased to respond. :(

Franticc
07-31-2008, 06:53 AM
hey,

Thanks for the answers.
Yes, i could put any vehicle wih status "unmanned" in the map, but in this case i must send an ranger or whatever there first to capture it. So, its no option for me.


This looks interesting:
You're going to have to modify the SkirmishScripts.scb file to do that. I can't offer you much more help than that, because I tried importing the scripts and my World Builder ceased to respond. :(

hm, i dont have any idea what to do with this file ^^ There are 17000 lines of scripting-setup params or whatever Oo.
But i try to google it and see if i find anything.
Thanks so far.

Greetz
Franticc

edit: @chaoscontrol512. Ok, i can tell you why your Worldbuilder crashed. In the playerlist, the PlyrVCivilian may not be listed on second position. There must be neutral on first and then the skirmish players. I deleted PlyrCivilian and created it new after i added the skirmish players. I don't know if this works perfect, but the import of the scripting file did.
But i still don't know what to do with this new scripts ^^ we will see ^^

apple23
08-02-2008, 08:31 PM
i'm not sure if you can run checks and spawn units belonging to a multiplayer faction. Unlike Yuri's revenge, there is no 'Player @1, 2, 3, etc.' faction, so you can't check if Player 1 is a certain faction because player 1 dosen't exist in Generals scripting language, it's only the teamtypes you specify yourself.

CNC3, on the other hand, did incorpoate this mechanic into the game, if you want to try that.

chaoscontrol512
08-05-2008, 09:37 PM
Ok, I take back everything I said in my first post. After waiting about 5 minutes, I was able to import the Skirmish Scripts. I took a look through them as well as the INI files, and it seems to be hardcoded into the game, as there is nothing in either of those things that relates to initial spawning.