PDA

View Full Version : opening doors :(????



killerfanges
08-10-2012, 05:37 AM
3303
I need help with a script to open this door its killing me :(

Necktra
08-10-2012, 08:56 AM
I guess it's a simple door without lock?

I'm using this on one of my scripts to open a door (nomads)


elseif (labelName == "Door") then

Self.UseItemFromGround(33247, 32534, 8)
end


Just change to your own cordinates of the door..

killerfanges
08-10-2012, 05:00 PM
ok the coors are 32875, 31044, 7 or 32875,31040, 6 and i cant get it to work it move over to the script then it goes away and a red message appears what am i doing wrong


am i nameing it wrong or something?

killerfanges
08-11-2012, 12:15 AM
bump please i need help lol this door is really killing me on boting

niggs
08-11-2012, 12:50 AM
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")

function onWalkerSelectLabel(labelName)
if (labelName == "Door") then
setWalkerEnabled(false)
delayWalker(4000)
Self.UseItemFromGround(Self.Position().x, Self.Position().y - 1, Self.Position().z)
setWalkerEnabled(true)
end
end





depends on where the door is at to what u put in..
say if door is in front of you it would be as shown above
if door below you it would be: Self.UseItemFromGround(Self.Position().x, Self.Position().y + 1, Self.Position().z)
if door to right you would use: Self.UseItemFromGround(Self.Position().x + 1, Self.Position().y, Self.Position().z)
if door to left you would use : Self.UseItemFromGround(Self.Position().x - 1, Self.Position().y, Self.Position().z)

be sure to put a stand point before the door

Infernal Bolt
08-11-2012, 01:22 PM
ok the coors are 32875, 31044, 7 or 32875,31040, 6 and i cant get it to work it move over to the script then it goes away and a red message appears what am i doing wrong


am i nameing it wrong or something?

remove the end and it should work.
You should use Self.OpenDoor(x,y,z) instead since that script he gave you will close the door if it's already open.

Golocky
01-28-2013, 09:15 PM
remove the end and it should work.
You should use Self.OpenDoor(x,y,z) instead since that script he gave you will close the door if it's already open.

thank you infernal, I was looking for this =)