Dynamite Objective Help


(daz2007) #1

Im Creating a Dynamite Objective put i keep getting this error

g_script - Scriptparse(), error line 180 : Unknown event : biggydoor

This is what is written in the Script

biggydoor
{
spawn
{
wait 200
constructible_class 3
}

}

In Radiant i Set up the Objectiuve like this

“classname” “func_explosive”
“mass” “333”
“type” “metal”
“health” “650”
“spawnflags” “4”
“targetname” “bigdoors”
“scriptname” “biggydoor”

and the trigger

“classname” “trigger_objective_info”
“spawnflags” “17”
“infoAllied” “Destroy the Doors, and Steal the Tank”
“infoAxis” “Do all that is Necessary to Protect the Tank”
“objflags” “4”
“score” “10”
“scriptname” “bigdoors_toi”
“shortname” “Big Doors”
“target” “Bigdoors”
“targetname” “bigdoors_toi”
“customalliesimage” “gfx/limbo/cm_dynamite”


(UJERebel) #2

Are youre ‘}’ and ‘{’ correctly closed before?
post the whole part/script plz :slight_smile: thx


(daz2007) #3

thanks the Error is Fixed

Another Problem, The Doors can still be Blown up by bullets and Knives even thoughts its a dynamite door


(UJERebel) #4

http://games.chruker.dk/enemy_territory/scripting_reference.php#construction_related

constructible_weaponclass <weapon_class>
 Sets the class of weapons that can damage this entity.
 

I think this will do the trick.

EDIT…

i think it is constructible_class
you will need the value 3 i guess.
http://games.chruker.dk/enemy_territory/scripting_reference.php#construction_class

goldrush:

tank_construct
{
	spawn
	{
		wait 1000

		kill tank

		constructible_class 2//<=========
		constructible_health 1200
		constructible_constructxpbonus 10
		constructible_destructxpbonus 10
	}


(daz2007) #5

Thanks

The Dynamite wont blow up the Doors, even though “Dynamite Planted is Announced”


(UJERebel) #6

You scripted the dissapearing to?
http://www.pythononline.co.uk/et/tutorial28.htm

Or post the whole script plz


(nUllSkillZ) #7

Try to remove health.

You could also have a look at the script of oasis.


(mortis) #8

Too much health can make a constructible invulnerable to damage, but my guess is that the script is not complete…