What is wrong with this? i can't find in the scripting references a good explanation of how to use the "destroy"function killateleport()
if dungeon_pressure_plate_10:isDown() == true
then
Teleporter_21:destroy()()
Teleporter_24:destroy()()
Teleporter_23:destroy()()
Teleporter_26:destroy()()
Teleporter_25:destroy()()
Teleporter_27:destroy()()
Teleporter_30:destroy()()
Teleporter_31:destroy()()
end
As usual i can't get how to do the simplest things :D
As usual i can't get how to do the simplest things :D
Re: As usual i can't get how to do the simplest things :D
I guess there are too many parentheses in there, you only need one couple per destroy.
Re: As usual i can't get how to do the simplest things :D
tried that too and it won't work
Re: As usual i can't get how to do the simplest things :D
it's good to use print to test things, so along with all the destroy commands you might also include a line:
print("plate is down"). If the line shows up then you know at least everything else is working. If the line doesn't show up, then maybe you spelled something wrong, capitalized something wrong, linked it wrong, etc. That just helps narrow down the problem.
(the destroy command was something we all wanted during the beta phase so they added it in and I guess didn't have time to properly/fully document it)
print("plate is down"). If the line shows up then you know at least everything else is working. If the line doesn't show up, then maybe you spelled something wrong, capitalized something wrong, linked it wrong, etc. That just helps narrow down the problem.
(the destroy command was something we all wanted during the beta phase so they added it in and I guess didn't have time to properly/fully document it)
Finished Dungeons - complete mods to play
Re: As usual i can't get how to do the simplest things :D
is there a funcion do nothing at all? also why the above won't work?
seems it might work for just one item...
seems it might work for just one item...
Re: As usual i can't get how to do the simplest things :D
I also noticed thet you missed an end for the function, try this:azidahaka wrote:tried that too and it won't work
Code: Select all
function killateleport()
if dungeon_pressure_plate_10:isDown() then
Teleporter_21:destroy()
Teleporter_24:destroy()
Teleporter_23:destroy()
Teleporter_26:destroy()
Teleporter_25:destroy()
Teleporter_27:destroy()
Teleporter_30:destroy()
Teleporter_31:destroy()
end
end
Re: As usual i can't get how to do the simplest things :D
it's damn case sensitive and i forgot that!
Re: As usual i can't get how to do the simplest things :D
Alternate,
And just add a connector from the pressureplate to the script entity?
Code: Select all
function killateleport()
Teleporter_21:destroy()
Teleporter_24:destroy()
Teleporter_23:destroy()
Teleporter_26:destroy()
Teleporter_25:destroy()
Teleporter_27:destroy()
Teleporter_30:destroy()
Teleporter_31:destroy()
end
Last edited by Neikun on Sat Oct 13, 2012 3:25 pm, edited 1 time in total.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
Re: As usual i can't get how to do the simplest things :D
Neikun wrote:Alternate,
And just add a connector from the pressureplate to the script entity?Code: Select all
function killateleport() Teleporter_21:destroy() Teleporter_24:destroy() Teleporter_23:destroy() Teleporter_26:destroy() Teleporter_25:destroy() Teleporter_27:destroy() Teleporter_30:destroy() Teleporter_31:destroy() end end
remove 1 end
Re: As usual i can't get how to do the simplest things :D
I don't know what you are talking about
haha
haha
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!