He all! I got a fence which was set to destroyable by satchel.
However i want to make it destroyable by knifes, so I changed it to constructible_class 1 however the knife doesn’t destroy it that way.
Could anyone explain me how to make this work out and how to change the satchel icon to the knife icon? Now is nothing at all appearing.
Constructible destroyable by knife?
http://games.chruker.dk/enemy_territory/scripting_reference.php#construction_class
I guess you can’t.
[QUOTE=ailmanki;396904]http://games.chruker.dk/enemy_territory/scripting_reference.php#construction_class
I guess you can’t.[/QUOTE]
@KillZone, the weapon WP_SWIPE has now been introduced, so if you can add a custom weapon that might be easier?
Maybe you could fake the effect. Make the barrier indestructible unless you are right next to it. Then make it the same destructible as a window. (This allows them to shoot it as well, but only from close range so…) Then you could also add the knife icon when they get close (not 100% sure about this).
[QUOTE=ailmanki;396904]http://games.chruker.dk/enemy_territory/scripting_reference.php#construction_class
I guess you can’t.[/QUOTE]
It actually is possible, it’s been done in the Hide & Seek mod. I’m guessing this is with LUA, so we can always code something inside the SDK if at all possible.
[QUOTE=KFGkillzone;396886]i want to make it destroyable by knifes, so I changed it to constructible_class 1[/QUOTE]Afaik, the entity doesn’t need a constructible_class if you want to destroy it with a non-explosive weapon. I’m not entirely sure, it’s been a while, but maybe try deleting the constructible_class line?
Thanks all!
@Phishermans Phriend: That did the knife trick! Thanks!! Also included constructible_health to make it take longer to destroy it. 
I’m trying to make the command map marker to work for that I’ve created a TOI(origin brush inside) and a misc_commandmap_marker.
Following settings:
- TOI:
shortname: text
track: text
targetname: axis_knife_TOI
customaxisimage: gfx/limbo/cm_radar_sidedoor.tga
target: axis_knife_marker
- misc_commandmap_marker:
targetname: axis_knife_marker
spawnflags: 1 (Axis only)
I want it only to show up for Axis when the Allied construction materials disappeared.
In the script I’ve added(took out the rest of code to make it a bit easier to read, so normaly there is more)
axis_fence
{
spawn
{
wait 50
trigger self setup
//constructible_class 1
}
trigger setup
{
// Construction materials here: set to default.
setstate axis_knife_TOI invisible // Knife CM marker TOI hidden
setstate axis_knife_marker invisible // Knife CM marker hidden
}
built final
{
// Construction materials here: set to invisible.
setstate axis_knife_TOI default // Knife CM marker TOI shown
setstate axis_knife_marker default // Knife CM marker shown
constructible_health 500
wm_announce "Basement Fence Constructed!"
}
decayed final
{
trigger self setup
}
death
{
trigger self setup
wm_announce "The Basement Fence has been destroyed!"
}
}
I’ve tried to let it only show/hide with the CM marker or TOI… No difference.
also is_objective didn’t make a difference in the TOI