Login

russian armor

Invincible Object Scripting.

29 May 2016, 10:12 AM
#1
avatar of Lt.CLIFFORTH

Posts: 20

Hi guys im currently making a map were a have some trouble with some custom bridges.
I dont no how to scrip the walkable object to make them invincible.
Im Sure some of you Mappers now how, i would really like to hear how to scipt it :)
2 Jun 2016, 04:07 AM
#2
avatar of Tric
Master Mapmaker Badge

Posts: 1467 | Subs: 4

I am not that big in scar editing, but I know Janne is, perhaps he will be able to help you more. He should be checking through this at a point, if not I will try messaging him for you, sorry I couldn't help you more.

This was actually something him and I discussed very recently in one of my maps (well making a map unrepairable), but this falls along the same categories, but is generally the same issue.
2 Jun 2016, 16:01 PM
#3
avatar of Lt.CLIFFORTH

Posts: 20

Me neither, and there is so little videos covering the Topic :( and so many Frums that got it messed up. tried alot of different scripts, with no luck :(

and yeah that would be great Thank you!:). also do you know if there is any way to make a bridge wich can be Crossed both over and under ???.
4 Jun 2016, 12:06 PM
#4
avatar of Tric
Master Mapmaker Badge

Posts: 1467 | Subs: 4

Me neither, and there is so little videos covering the Topic :( and so many Frums that got it messed up. tried alot of different scripts, with no luck :(

and yeah that would be great Thank you!:). also do you know if there is any way to make a bridge wich can be Crossed both over and under ???.


There is no way for a bridge to be crossed over and under.

There is actually no Z axis in the worldbuilder when it comes to objects, as it renders all pathing along the x and y plane. A good way to see what I am talking about is to get a tree floating in the worldbuilder, and then trying to walk under it with infantry (or a house) and you will see that they will still take cover behind the object or path around (in the case of the house they will magically float up inside it if you tell them to garrison) the object.

Another way to illustrate that is by using cntrl + shift + f5 and it will place the object impass overlay down and you will see that the ground is marked red, that is nonpassable terrain.
4 Jun 2016, 12:08 PM
#5
avatar of Opulent Omega

Posts: 17

Create EGroup for your bridge in question. For example, let's use EGroup name: InvincibleBridge


function IndestructibleBridge()

EGroup_SetInvulnerable(InvincibleBridge, true)

Scar_AddInit(IndestructibleBridge)
4 Jun 2016, 14:09 PM
#6
avatar of Lt.CLIFFORTH

Posts: 20

Create EGroup for your bridge in question. For example, let's use EGroup name: InvincibleBridge


function IndestructibleBridge()

EGroup_SetInvulnerable(InvincibleBridge, true)

Scar_AddInit(IndestructibleBridge)


okay so i just make an Scar file with.

"function IndestructibleBridge()

EGroup_SetInvulnerable(InvincibleBridge, true)

Scar_AddInit(IndestructibleBridge)" and then make sure the EGroup Name is accurate ?

Tric.
yeah i have messed around with alot of objects to see if it was possible, it would really open up for alot of nice maps if they made it possible. but would it be something that could be scripted you think ???
5 Jun 2016, 01:23 AM
#7
avatar of Tric
Master Mapmaker Badge

Posts: 1467 | Subs: 4




Tric.
yeah i have messed around with alot of objects to see if it was possible, it would really open up for alot of nice maps if they made it possible. but would it be something that could be scripted you think ???


No the worldbuilder wont allow it, as there is no true Z axis and there is no pathing for it, it would have to be a straight up mod to make it work, and even then, I doubt it would be good.
5 Jun 2016, 09:05 AM
#8
avatar of Lt.CLIFFORTH

Posts: 20

jump backJump back to quoted post5 Jun 2016, 01:23 AMTric


No the worldbuilder wont allow it, as there is no true Z axis and there is no pathing for it, it would have to be a straight up mod to make it work, and even then, I doubt it would be good.


Damn its kind of sad :( i had some great ideas Though.
5 Jun 2016, 09:23 AM
#9
avatar of DonnieChan

Posts: 2272 | Subs: 1

Hi guys im currently making a map were a have some trouble with some custom bridges.
I dont no how to scrip the walkable object to make them invincible.
Im Sure some of you Mappers now how, i would really like to hear how to scipt it :)



just brace it
7 Jun 2016, 08:13 AM
#10
avatar of MajorBloodnok
Admin Red  Badge
Patrion 314

Posts: 10665 | Subs: 9

Thread title amended
18 Jun 2016, 08:50 AM
#11
avatar of Opulent Omega

Posts: 17



okay so i just make an Scar file with.

"function IndestructibleBridge()

EGroup_SetInvulnerable(InvincibleBridge, true)

Scar_AddInit(IndestructibleBridge)" and then make sure the EGroup Name is accurate ?

Tric.
yeah i have messed around with alot of objects to see if it was possible, it would really open up for alot of nice maps if they made it possible. but would it be something that could be scripted you think ???


You need to create an EGroup with the bridges in question first before you use that code.

You can also make units pass under or above normal height... but you cannot get two units to pass both above and below an object simultaneously.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
Last Wednesday, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
Last Wednesday, 16:58 PM
Beinhard: o7 miss this game and zansi
Last Wednesday, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
27 Mar 2025, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 AM

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

201 users are online: 201 guests
0 post in the last 24h
5 posts in the last week
54 posts in the last month
Registered members: 53554
Welcome our newest member, tksv388cam1
Most online: 2043 users on 29 Oct 2023, 01:04 AM