Curious Problem
Posted: October 6th, 2010, 9:38 pm
I have already been using SB 2.5 for some time, then I decided to install the new SB 2.6
I was creating a map using 2.6 and created a locked door that requires a key to open.
Using the example in a Cubescript document, I created the door, the key and the script. Approached the door. "You need the key.". Grabbed the key. Approached the door, and nothing. The door remained locked.
I figured a simple script error. Could not find an error. Must have been the model settings? No. They were fine as well.
Tried the same map and script using SB 2.5 (both unedited) and worked like a charm. Place map and script back into SB 2.6 and the door remained shut.
Created newmap (/newmap 10) and called it tst01. placed a door (/newent mapmodel 110 11 4) and the key (/newent mapmodel 58 12 5) and the playerstart. Used the following script:
key1 = 1
level_trigger_4 = [
if ( = $key1 1 ) [ trigger 4 1 ] [ echo "You need a key." ]
]
level_trigger_5 = [
key1 = 1
]
Saved the script as tst01.cfg (note: used the inbuilt text editor to create cfg file)
I used the same script in both versions of SB with only version 2.5 working correctly.
Any thoughts?
J
I was creating a map using 2.6 and created a locked door that requires a key to open.
Using the example in a Cubescript document, I created the door, the key and the script. Approached the door. "You need the key.". Grabbed the key. Approached the door, and nothing. The door remained locked.
I figured a simple script error. Could not find an error. Must have been the model settings? No. They were fine as well.
Tried the same map and script using SB 2.5 (both unedited) and worked like a charm. Place map and script back into SB 2.6 and the door remained shut.
Created newmap (/newmap 10) and called it tst01. placed a door (/newent mapmodel 110 11 4) and the key (/newent mapmodel 58 12 5) and the playerstart. Used the following script:
key1 = 1
level_trigger_4 = [
if ( = $key1 1 ) [ trigger 4 1 ] [ echo "You need a key." ]
]
level_trigger_5 = [
key1 = 1
]
Saved the script as tst01.cfg (note: used the inbuilt text editor to create cfg file)
I used the same script in both versions of SB with only version 2.5 working correctly.
Any thoughts?
J