Mark PaK 43 Emplacement as "abandon"
Posts: 42
have placed some Vehicles on a Map and marked them as "abandon" with the "CirticalHit" by Scar-
Script.
Every Vehicel can be captured by Players, but it dont work with Pak43 Emplacement.
The Icon to capture the PaK is shown in Game, but no Player can capture.
Do you have any Ideas why?
Mapper greetings
-ernst-
Posts: 42
Posts: 357
Worst case scenario, if you cannot find another Pak43 object in the list, that works, if there is a map you know of that has a working one, you can make a stamp of it, and get it in your map that way.
Posts: 42
The solution is:
EBP.GERMAN.PAK43_88MM_AT_GUN_MP
;o))
Posts: 42
..many thanks, will check it out.
The solution is:
EBP.GERMAN.PAK43_88MM_AT_GUN_MP
-- EBP.GERMAN.PAK43_88MM_AT_GUN_MP
eg_vehicles=EGroup_CreateIfNotFound("eg_vehicles")
eg_vehicles=Util_CreateEntities(nil,"eg_vehicles",EBP.GERMAN.PAK43_88MM_AT_GUN_MP, Util_GetPosition(mkr_9), 1)
eg_vehicles=Util_CreateEntities(nil,"eg_vehicles",EBP.GERMAN.PAK43_88MM_AT_GUN_MP, Util_GetPosition(mkr_10), 1)
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles, CRIT.VEHICLE_ABANDON,0)
Remark: you must change my mkr_9 and mkr_10, to your actual marker.
Posts: 43
What actual marker?
edit: Do you have to do anything with markers, and if so, what does one have to do?
Posts: 42
Remark: you must change my mkr_9 and mkr_10, to your actual marker.
What actual marker?
edit: Do you have to do anything with markers, and if so, what does one have to do?
Hi Flying Dutchy,
if you want to spawn the EBP.GERMAN.PAK43_88MM_AT_GUN_MP, with scar-script, in the same way, like i did, you have to use the markers you set in your map.
I hope you can understnd what i want to say,..pls. excuse my bad english.
November greetings
-ernest-
Posts: 43
I still don't understand what type of marker I have to put down. Some kind of spawner? Does this mean I don't have to put down an object?
Could you please elaborate what steps you undertake to place one (or more) of these in the map, and make it functional?
Thanks for the speedy response either way!
Posts: 42
Hi Ernesto,
I still don't understand what type of marker I have to put down. Some kind of spawner? Does this mean I don't have to put down an object?
Could you please elaborate what steps you undertake to place one (or more) of these in the map, and make it functional?
Thanks for the speedy response either way!
Hi Flying Dutchy,
the type of Marker is "Alley spawn", you find the markers in Worldbuilder (WB). ( The Marker-Icon in WB looks like a red flag)
I have testet to set the EBP.GERMAN.PAK43_88MM_AT_GUN_MP direct in Worldbuilder and name the Emplacement "eg_88", later in my scar script i set the Entity group "eg_88" to anbandoned, but in game the "eg_88" (EBP.GERMAN.PAK43_88MM_AT_GUN_MP) was not to capture through my troops.
The solution for me was, to spawn the EBP.GERMAN.PAK43_88MM_AT_GUN_MP over a Marker.
Hope this helps you?
November fog greetings
-ernst-
PS: if you like, i send you my test map, with the scar script that places the EBP.GERMAN.PAK43_88MM_AT_GUN_MP and mark them as abandoned.
Posts: 43
It is still very confusing to me. I get you have to put down a marker somewhere, but then what?
I have never found a tutorial online which explains how markers work. Sure, there are some people that say: Hey look at this, you can add smoke. But that somehow seems worlds and leagues apart from what you have to do here.
I have absolutely no programming background, so I have incredible difficulties trying to understand how everything works. It's a wonder I got some basic SCAR scripts running as it is...
How do you spawn something on a marker? Is that what the script is for? Can I just blatantly copy the script you posted in a SCAR file without any "OnInit" and "end" stuff un there? How do you know which way the emplacement will be facing? Do you name the emplacement itself eg_88 or is that the entitygroup which contains all the PAK43's?
If you could send the map that might be helpfull.
It is really frustrating to see everybody talk in jargon and special programming lingo, and not know what the freaking duck it means
Either way, I appreciate you trying to help out.
Posts: 42
Hi Ernesto,
It is still very confusing to me. I get you have to put down a marker somewhere, but then what?
I have never found a tutorial online which explains how markers work. Sure, there are some people that say: Hey look at this, you can add smoke. But that somehow seems worlds and leagues apart from what you have to do here.
I have absolutely no programming background, so I have incredible difficulties trying to understand how everything works. It's a wonder I got some basic SCAR scripts running as it is...
How do you spawn something on a marker? Is that what the script is for? Can I just blatantly copy the script you posted in a SCAR file without any "OnInit" and "end" stuff un there? How do you know which way the emplacement will be facing? Do you name the emplacement itself eg_88 or is that the entitygroup which contains all the PAK43's?
If you could send the map that might be helpfull.
It is really frustrating to see everybody talk in jargon and special programming lingo, and not know what the freaking duck it means
Either way, I appreciate you trying to help out.
Hi Flying Dutchy,
i get my scar Basics in CoH1-Forum, look here:
http://forums.relicnews.com/showthread.php?211948-How-To-Some-Basic-Scar-for-Mappers&highlight=SCAR+Commands
Ok, may be my very broken english is the reason why all is so confusing to you ;o)
I try to explain in Steps:
-start Worldbulider
-load an existing map, oder create a new one.
- select Marker-Icon in WB ( in the upper border of the WB-Window you will find a little red Flag-Symbol)
- klick on Marker Name "Alley Spawn", will place you a Marker to your map. (1st marker is named "mkr_1", you can change the name, if you like. Place a 2nd marker, "mkr_2")
-open an Editor ( notepadd ++ ) and copy the following lines:
import("ScarUtil.scar")
function OnInit()
eg_vehicles=EGroup_CreateIfNotFound("eg_vehicles")
eg_vehicles=Util_CreateEntities(nil,"eg_vehicles",EBP.GERMAN.PAK43_88MM_AT_GUN_MP, Util_GetPosition(mkr_1), 1)
eg_vehicles=Util_CreateEntities(nil,"eg_vehicles",EBP.GERMAN.PAK43_88MM_AT_GUN_MP, Util_GetPosition(mkr_2), 1)
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles, CRIT.VEHICLE_ABANDON,0)
end
Scar_AddInit(OnInit)
-save the scar-Scipt with the same name like your map name such as "testmap.scar" in same Folder like your map is located.
-Now save your map in WB and after it select "Export package" (WB : file->Export package)
Result: When you start Coh2 and select your map "Testmap" the script will spawn you two EBP.GERMAN.PAK43_88MM_AT_GUN_MP, at the marker positions "mkr_1" and "mkr_2", without a selected facing Position, but this can also be done with the function we use to spwan the entitiy.
The name of the Entity Groups you take is your decision, in this example i take "eg_vehicles".
Helpful is to name Entity Groups starting with "eg" and Squad Gropus with "sg", it is easyer to find, if your scar script will have a lot of lines.
I send you my testmap, as a link ( when i am back from work ;o),so you can find out how markers and scar script works.
never give up greetings
-ernst-
Posts: 43
Here I am again hahaha. 1st of all, thanks a lot for putting in the effort. that is mighty generous of you.
I made my ally spawn markers, however it is unclear to me what to do with the entity groups. I cant add my markers to any groups, and it's unclear to me what to do with that part. Do I even have to create an entity group?
Also, don't worry about your English, it's far better than my German. Ich spreche ein bischen aber es ist sehr schwierig fur mir haha
Posts: 42
YESSSS
I got it to work. No entity groups, just did as you said and it freaking works!
You are my hero. I will pray east starting today.
Vielen dank!!!!
It´s a pleasure to me, that you have got the script working ;o)
The entity Groups you only need in WB, if you want to adress entities on your map to work with them later in scar scripts, such as lamps. May be you have 2 Lamps on your map and you want to switch them on/off with a scar script, so you give the lamps to an entitiy Group such as "eg_lamp1" and "eg_lamp2". This way allows you to Switch every lamp. "eg_lamp1"=off, "eg_lamp2"=on, if you choose only "eg_lamp" and take both lamps in the same entity Group than both lamps together can switched on or off.
Funny greetings
-ernst-
PS: thanks a lot for chocolate bar
Posts: 43
For extra chocolate muffins:
Could we also rotate these PAK43 guns?
Posts: 42
Ernesto,
For extra chocolate muffins:
Could we also rotate these PAK43 guns?
Hi Flying Dutchy,
yes we can! ;o)
Set in WB another two markers such as "mkr_3" and "mkr_4". This is the direction where the Emplacements are facing for.
Now you must change the scar script lines in which we spawn the Emplacement to:
eg_vehicles=Util_CreateEntities(nil,"eg_vehicles",EBP.GERMAN.PAK43_88MM_AT_GUN_MP, Util_GetPosition(mkr_1), 1,Util_GetPosition(mkr_3) )
eg_vehicles=Util_CreateEntities(nil,"eg_vehicles",EBP.GERMAN.PAK43_88MM_AT_GUN_MP, Util_GetPosition(mkr_2), 1,Util_GetPosition(mkr_4) )
After saving the changes in scar script, save your map in WB too, "Export packaging", and have fun.
Nothing seems to be unpossible greetings ;o))
-ernst-
PS: may be this link is helpful for you:
http://fortresseuropemod.com/scardoc/treeview/treecode_nojs.htm
Posts: 42
here the link to the testmaps we talked about:
http://www.mediafire.com/download/pksenbdbs4vg4zb/4p_Harbour_fight.rar
http://www.mediafire.com/download/t3y8idesti2a4tl/The_great_Divide.rar
Map 1: 4p_Harbour_fight
scar script contains some Lamp - animations, and the Player get additional vehicles, every 5 Minutes, if player captures 2 spec. Resource Points.
Map 2: The_great_Divide
scar script to spawn Pak 43 Emplacement and make vehicles captureable.
8p Map with 8 Factories to get additional vehicles every 5 Minutes, if Player captures a spec. resource Point.
enjoy the maps
-ernest-
Posts: 43
Another question: what kind of marker do I use to "aim" the PAK guns with? Another Ally spawn marker? I took a look at your maps but I couldnt spot a marker which you used to aim.
Ambitious project, how long you been working on positioning those houses?
Thanks again!
Posts: 42
Hahaha I bet you played "Z" too?
Another question: what kind of marker do I use to "aim" the PAK guns with? Another Ally spawn marker? I took a look at your maps but I couldnt spot a marker which you used to aim.
Ambitious project, how long you been working on positioning those houses?
Thanks again!
Moin moin Flying Dutchy,
to spawn any kind of Object to your Map you need a Marker (Ally Marker).
The Name of the Object you will find in luaconstauto.scar.
To make all Markers visible in Worldbuilder, you have on the upper right side of WB an Icon with a Flag Symbol, if you push it, you will see all placed markers.
The Maps are all in Progress, but i´am not the best mapmaker. To give the map a professional look, my Patience is weak ;o( but i like scar Scripting ;o))
Have you had time to Play one or both maps and if, what is your Impression about?
November morning greetings
-ernst-
Posts: 43
I haven't been able to play your maps yet, due to my house being a mess with construction works. I will definitly give it a go when stuff settles down on this end.
Funny to see you don't have the patience for the design editing, yet you know all about this scar stuff. With me it's exactly the other way around. Perhaps we can help eachother on these fronts? I would gladly add the detail for you, if you allow me to do so. I love designing shit, and I reckon I'm pretty good at it. Perhaps I should send you some of my work, so you can have a look yourself. I have not published everything yet, just my Fubar Fjord mayhem level. Which was the 2nd map I ever made.
But, back to those markers, I know you have to use the ally spawn to get the guns in the level. You said that I needed another marker to point these guns to. Does it matter what kind of marker I use to aim the guns?
Thanks again!
Livestreams
27 | |||||
192 | |||||
84 | |||||
16 | |||||
2 | |||||
2 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1099614.642-1
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
7 posts in the last week
39 posts in the last month
Welcome our newest member, Mclatc16
Most online: 2043 users on 29 Oct 2023, 01:04 AM