Search found 3 matches
- Mon Oct 27, 2014 11:32 pm
- Forum: Mod Creation
- Topic: How to script torch holders?
- Replies: 13
- Views: 13182
Re: How to script torch holders?
I knew that I could get the value with a counter and so on but wanted to see how to do it with a single script. The thing is I'm trying to learn scripting (I'm a begginer programer and I'm on a pretty basic lvl) I was missing that the code is actually "getHasTorch"
- Mon Oct 27, 2014 10:52 pm
- Forum: Mod Creation
- Topic: How to script torch holders?
- Replies: 13
- Views: 13182
Re: How to script torch holders?
still in the LoG2 editor there is some kind of difference and I can't do it
it sais "attempt to call method 'hasTorch' (a nil value)"
Code: Select all
if t1.controller:HasTorch() == true then
d1.door:open()
else
d1.door:close()
end
- Mon Oct 27, 2014 10:33 pm
- Forum: Mod Creation
- Topic: How to script torch holders?
- Replies: 13
- Views: 13182
How to script torch holders?
I looked the forums but still didn't quite find how to make a door open by checking if there is a torch in the torch holder.