Hey guys, a friend and me are gonna make a map but we want a secret room in it with a code door so u see like 6 numbers and you have to press 4 combo or 3 combo and then the door will go open and close in 5 sec again. I know it’s possible maybe some of you remember the map CodFrag there was a code door in it, i tried to copy the script but it did give errors.
game_manager
{
spawn
{
wm_axis_respawntime 8
wm_allied_respawntime 8
accum 0 set 0
accum 1 set 0
}
trigger inc
{
accum 0 inc 1
accum 0 abort_if_not_equal 4
accum 1 abort_if_equal 3
alertentity lock_sound
wait 500
wm_announce "reset"
accum 0 set 0
accum 1 set 0
}
trigger b3_activate
{
accum 0 abort_if_not_equal 1
accum 1 inc 1
}
trigger b6_activate
{
accum 0 abort_if_not_equal 2
accum 1 inc 1
}
trigger b1_activate
{
accum 0 abort_if_not_equal 3
accum 1 inc 1
accum 1 abort_if_not_equal 3
alertentity unlock_sound
wm_announce "OK !"
wait 1000
alertentity door_code
accum 0 set 0
accum 1 set 0
wait 150
wm_announce "reset"
}
}
button
{
trigger b1_activate
{
alertentity button_sound
wm_announce "*"
wait 50
trigger button b1
}
trigger b2_activate
{
alertentity button_sound
wm_announce "*"
trigger button b2
}
trigger b3_activate
{
alertentity button_sound
wm_announce "*"
wait 50
trigger button b3
}
trigger b4_activate
{
alertentity button_sound
wm_announce "*"
trigger button b4
}
trigger b5_activate
{
alertentity button_sound
wm_announce "*"
trigger button b5
}
trigger b6_activate
{
alertentity button_sound
wm_announce "*"
wait 50
trigger button b6
}
I am kinda new to this so i give some info about the triggers and what i got in my map:
“classname” “func_invisible_user”
“target” “b1_activate”
“cursorhint” “hint_activate”
“targetname” "b1
Connected to:
“classname” “target_script_trigger”
“scriptname” “button”
“targetname” “b1_activate”
“origin” “866 1367 977”
“target” “b1_activate”
And so on with 2-6, maybe u know what i do wrong but if i got it like this it only says * * * * no reset and Entity used it self or something like that.
Hope u can help me.
Roel
