Just a question

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Kamikazi
Inhabitant of a Conurbation
Reactions:
Posts: 471
Joined: 27 Jan 2018, 00:58
Location: ESPAÑA
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Just a question

#1

Post by Kamikazi »

how do i make when i touch a biulding, for example, destroys the whole city

User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Just a question

#2

Post by Kulche »

See Fun Attribute in Tutorials and Documentations section.

To make an explosion, add this to your code:

Code: Select all

... //Basic code for any building
"on click fun":[  //Fun will work on click. For daily use, change to "fun"
{
"actions":[{
"type":"disaster", //To add a disaster function
"id":"nuke", //Will cause a nuke to explode on the building
"x":0,
"y":0 //Position of 'nuke' action
}
]
}
]

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”