Need help to understand scripts better.


(Commando66) #1

I have this part of a script that is driving me mad, i have no idia what is wrong and i have checked it so many times, i get the error G_Script_Script Parse (), Error Line 22,

// =================================================
Library Doors
{
spawn
{
wait 300
constructible_class 3 // 2=satchel 3=dyna
}

death
{
alertentity Library_Doors_bits
trigger Library_Doors_toi remove

  wm_announce "The Allies have destroyed the Library Doors!"

}
}

Libray_Doors_toi
{
trigger remove
{
remove
}
}

i thought it was the one just above Library_Doors_Toi, the one below the announcement but i keep getting the same error but a different line.

I checked to make sure they are all in groups of 2, i made sure there is something above a { etc, can anyone point out the problem and help me understand a little more? i have used this script piece before and had no problems.


(Zer0Cool) #2

scriptnames have to be (like all other names too) without spaces
so your “Library Doors” has to be “Library_Doors” or “LibraryDoors” or whatever.


(Nail) #3

Libray_Doors_toi
should be
Library_Doors_toi