Ramirow
Veteran OT User
- Joined
- Aug 22, 2009
- Messages
- 584
- Solutions
- 15
- Reaction score
- 301
- Location
- Argentina
- YouTube
- ramirogrant
Hello to everyone, I'm just trying to learn a bit about lua functions for TFS 1.1
I assume this kind of functions exist even tough I don't know how they are called or what parameters to pass..
I'm trying to create something like this:
1) You use a hammer and destroy an item with id A (Some rocks for example)
2) Then, after some seconds, let's say, 30. The rock is recreated again in the same position.
3) But ONLY if at the moment of creation there's not a player standing there.
I'm pretty confused in how to proceed, investigating some scripts that came with the server I've found target:transform() but it doesn't work quite well for what I'm trying to do.
I'm not asking for a complete script, only the functions and parameters involved in such tasks as I don't know them.
Thanks in advance!
I assume this kind of functions exist even tough I don't know how they are called or what parameters to pass..
I'm trying to create something like this:
1) You use a hammer and destroy an item with id A (Some rocks for example)
2) Then, after some seconds, let's say, 30. The rock is recreated again in the same position.
3) But ONLY if at the moment of creation there's not a player standing there.
I'm pretty confused in how to proceed, investigating some scripts that came with the server I've found target:transform() but it doesn't work quite well for what I'm trying to do.
I'm not asking for a complete script, only the functions and parameters involved in such tasks as I don't know them.
Thanks in advance!