Search found 5 matches
- Wed Feb 01, 2017 7:42 pm
- Forum: Modding help
- Topic: "UnknownKey" output on entity.position
- Replies: 2
- Views: 802
Re: "UnknownKey" output on entity.position
Ah, I see. I had also tried accessing it with entity.position[1] and [2] respectively, as I was told it would be an array (containing 2 variables). That makes sense then, thank you again!
- Wed Feb 01, 2017 7:23 pm
- Forum: Modding help
- Topic: "UnknownKey" output on entity.position
- Replies: 2
- Views: 802
"UnknownKey" output on entity.position
Ran into another problem here, couldn't find a post which had me covered.
For some stuff I want to do I need the position of an entity when it is destroyed (aka it "died").
The actual underlying code is irrelevant at this point, my problem is that I cannot access the coordinates of the entity ...
For some stuff I want to do I need the position of an entity when it is destroyed (aka it "died").
The actual underlying code is irrelevant at this point, my problem is that I cannot access the coordinates of the entity ...
- Wed Feb 01, 2017 5:35 pm
- Forum: Modding help
- Topic: Modifying "player" base entity
- Replies: 4
- Views: 1226
Re: Modifying "player" base entity
NVM,
saw your post. Yeah, makes sense to pay attention to spelling x.x . I didn't see it either.
saw your post. Yeah, makes sense to pay attention to spelling x.x . I didn't see it either.
- Wed Feb 01, 2017 5:22 pm
- Forum: Modding help
- Topic: Modifying "player" base entity
- Replies: 4
- Views: 1226
Re: Modifying "player" base entity
Thank you for the quick response! That was already really helpful, would have been much easier to just manipulate the prototype directly but it will work out the other way too I guess.
I tried it with your example and get ': attempt to index field 'event' (a nil value)' as an error message when I ...
I tried it with your example and get ': attempt to index field 'event' (a nil value)' as an error message when I ...
- Wed Feb 01, 2017 3:33 pm
- Forum: Modding help
- Topic: Modifying "player" base entity
- Replies: 4
- Views: 1226
Modifying "player" base entity
Hey there. I am fairly new to lua and this games class/object structure, so I am not 100% sure if I am doing something wrong or if this is simply not possible.
I am trying to insert a new variable into the player entity. I need this to store and track a simple integer value, nothing fancy. I could ...
I am trying to insert a new variable into the player entity. I need this to store and track a simple integer value, nothing fancy. I could ...