View Full Version : Scripting Question

05-05-2006, 05:44 PM
Does this look OK? It will be attached to a dialog.
void main() {

object oLocker=GetObjectByTag("ew_footlocker029");
if (oLocker==OBJECT_INVALID) {
vector vLocker=Vector (1.18316, -26.91355, 7.50000);
location lLocker=Location(vLocker, 90.00000);
oLocker= CreateObject(OBJECT_TYPE_PLACEABLE, "ew_footlocker029", lLocker);
CreateItemOnObject("ew_b_data_c", oLocker);
SetLocked(GetObjectByTag("kh_door_locked", 0), 0);
DelayCommand(0.5, AssignCommand(GetObjectByTag("kh_door_locked", 0), ActionOpenDoor(GetObjectByTag("kh_door_locked", 0))));

If that is right, my next question is Do all the Private Doors in Khoonda have the same tag?
If yes, will this script open all such doors as is?
If yes, what is the best way to stop that?