Hey guys,
I’ve made a door which basically just is dynamitable. But when I want to open the game, it says: “SV_SetBrushModel NULL” , what does this mean? I’ve made a script for it by putting a few thing in there from other maps (see below).
I have the following entities:
- A func_explosive: the entrance
- A trigger_objective_info: a brush with the trigger texture
- A trigger_objective_info: a brush with the origin texture
The door is pretty big, kinda like the one from Radar, and the entities have the following stats in-radient:
Door:
classname: func_explosive
targetname: ctrlroomentrance_obj1
scriptname: thecourtyard
health: 0
Door’s trigger_obj_info’s:
classname: trigger_objective_info
scriptname: entrance_trig
target: crtlroomentrance_obj1
The script: thecourtyard
->
//Map: Makoreactor Nr1
//created by Aikon
game_manager
{
spawn
{
// Game Rules
wm_axis_respawntime 1
wm_allied_respawntime 1
wm_number_of_objectives 1
wm_set_round_timelimit 30
// Objectives
// 1. blow up the controlroomentrance
// Current main objectives for each team (0=Axis, 1=Allies)
wm_objective_status 1 0 0
wm_objective_status 1 1 0
// Accum #1 will be the state of objective number one
accum 1 set 0
accum 2 set 0
// Set Defending Team for SW Mode
wm_set_defending_team 1
}
}
entrance_obj1
{
spawn
{
accum 2 set 0
wait 50
constructible_class 3
setstate maindoor1 default
}
death
{
trigger tank doors_destroyed
trigger game_manager maindoor1_destroyed
}
defused
{
globalaccum 7 inc -1
globalaccum 7 abort_if_not_equal 0
}
}
ctrlroomentrance_trig
{
spawn
{
}
dynamited
{
globalaccum 7 inc 1
globalaccum 7 abort_if_equal 0
}
}
I sure hope someone of you guys can help me.
