I make road decorations that are removed when a certain car arrives, like protesters that are removed when the police arrive, or road debris that is removed when a garbage truck arrives.CommanderABab wrote: ↑06 Oct 2023, 00:34Is this a car you have developed? The garbage is not actually implemented as a road decoratipn.
Search found 5 matches
- 10 Oct 2023, 08:09
- Forum: Tutorials and Documentation
- Topic: How to write a plugin
- Replies: 107
- Views: 181310
Re: How to write a plugin
- 05 Oct 2023, 11:32
- Forum: Tutorials and Documentation
- Topic: How to write a plugin
- Replies: 107
- Views: 181310
Re: How to write a plugin
It’s a pity that I won’t be able to recreate in fun the mechanics of garbage on the road, which is removed when a garbage truck passes, then I’ll have to write code in Lua, thanks for the answer
- 29 Sep 2023, 09:52
- Forum: Tutorials and Documentation
- Topic: How to write a plugin
- Replies: 107
- Views: 181310
Re: How to write a plugin
Hello everyone, I have been struggling with one problem for a long time, is there a way to remove road decorations if there is a certain car at its coordinates? #acertaincar Sorry, but I didn’t understand your answer, I clicked on the hashtag, but only one match appeared and is this your comment or...
- 28 Sep 2023, 11:38
- Forum: Tutorials and Documentation
- Topic: How to write a plugin
- Replies: 107
- Views: 181310
Re: How to write a plugin
Hello everyone, I have been struggling with one problem for a long time, is there a way to remove road decorations if there is a certain car at its coordinates?
- 01 Jun 2023, 16:52
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 190
- Views: 92622
Re: Lua chatbox
I don't understand what is wrong with this script. Nothing happens when the police car is at the coordinates of the road decoration. function script.update() -- Debug.toast("starting code!") local car = Draft.getDraft('$carpolice00') local carX = car.getX() local carY = car.getY() if Build...