Maintenance - We're currently working on things and you might experience some issues. Should be wrapped up soon!

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Help with lua coding
Post Body

Hello I am new to lua and coding.i am making a mod for project zomboid I have been watching tutorials. I am working on creating my first mod but cannot grasp the coding. I could use some help with the following.

What I am trying to accomplish is have it that when a certain code runs that it would then cause another code to run. For Instance I want that each time a zombie dies then display the game time.

Events.OnZombieDead. then display gametime.

Is there a proper way to have one code trigger another

Can IF and Then be used? Thank you.

--

Author
User Disabled
Account Strength
0%
Disabled 2 months ago
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
489
Link Karma
429
Comment Karma
60
Profile updated: 2 hours ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago