how do i fix this


(Adminmight) #1

like the name siad


(-SSF-Sage) #2

Check your .script. It has line setstate (targetname) (stage). It says it can’t find targetname, so check for the missing targetnames of entities.

Edit there should be a entity with the same targetname as in your script while. Now there isn’t and that’s why this error comes.


(Flippy) #3

Simply said, you try to set the state of an entity (setstate [name] invisible for example) and the [name] part does not exist. There is no entity in the map with targetname “name”.
You probably made a typo in the script :slight_smile:


(Adminmight) #4
alliedconstruct_n
{
	spawn
	{
		wait 50
		trigger self setup
		constructible_class	3	// 2=Satchel 3=Dyna
	}

	trigger setup
	{
		setstate alliedconstruct_n_materials default	// Crate Models
		setstate alliedconstruct_n_clip default		// Clip brushes
		setstate alliedconstruct_n_flag default
	}

	built final
	{
		setstate alliedconstruct_n_materials invisible	// Crate Models
		setstate alliedconstruct_n_clip invisible	// Clip brushes
		setstate alliedconstruct_n_flag invisible

		wm_announce ""
	}

	decayed final
	{
		trigger self setup
	}

	death
	{
		trigger self setup
		wm_announce "" 
	}
}

well i dont know what realy ,thats what im testing on right now.


(Flippy) #5

Can you confirm that there are entities with the following targetname:
alliedconstruct_n_materials
alliedconstruct_n_clip
alliedconstruct_n_flag

?


(Adminmight) #6

o wait,so you are telling me that the targetname i set in the entities window must be the one in the line for setstate?


(Adminmight) #7

holy crap ,it worked,thankz guys