Constructables: Pls not rederict me to search, tried that


(TubS) #1

Im working on a small map, my first and in the middle i placed a wall, i want allies to construct that wall out of a pile of wood, axis can blow it up by dyna.

But the pile of wood keeps invisible, i can construct it tho as an engie and if the wall is fixed and i spawn axis, they can’t dyno it. the wall blows when the axis shoot at it :???:

im confused now, here is some info:

This is the wall:

I made the wall and a trigger brush, selected them both then made them func_constructable and i gave the folowing entities:

this is the script:

wall
{
	spawn
	{
		wait 200
		trigger self setup
		constructible_class 3
	}

	trigger setup
	{
		setstate wall invisible
		setstate materiaal default
	}

	buildstart final
	{
		setstate wall underconstruction
		setstate materiaal default
	}


	built final
	{
		setstate wall default
		setstate materiaal invisible
		wm_announce "The wall"
	}


	decayed final
	{
		trigger self setup

	}

	death
	{
		trigger self setup

		wm_announce "The wall"
	}
}

edit: one little thing, i cant get metal sound to work foor doors, stone and wood are working, i use type : 1


(Loffy) #2

Hi TubS!
Have you tried the box “start_built”? (Second picture from above.)
About the sounds: I always use type 5, some of the other sounds do not work.
//Loffy


(TubS) #3

yea i tried that but the the wall automaticly is build at ths start, i want allied to construct them first. the wall should not me default


(kamikazee) #4

I haven’t got a scripting reference at hand, but is it really necessay to use “buildstart final” ?
I thought it wasn’t necessary to put a level at the end.

Allso: you shouldn’t setstate the trigger_objective_info, neither the func_constructible.
Hiding and showing the wall is done by the building system, you only need to setstate things that are not included in the func_constructible like the building materials.

Maybe you should restart from a tutorial?
It seems to be set up in a wrong way at first look…


(TubS) #5

i followed some tuts but every tut is diffrent, and some things arent making any sence to me since im noob, im a quick learner IF the information is correct and if i understand what i have to do, maybe somone can add me on msn or X-fire

msn: patrickvan_dijck@hotmail.com
Xfire: tubs1987


(Loffy) #6

Do you get the wm_announce “The wall” -message, when you build the wall?


(TubS) #7

yea im gonna try it again, more info soon