Functional Tornado Siren [WIP]
Moderator: Plugin Moderators
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Functional Tornado Siren [WIP]
It's currently possible make a building react to a disaster? (A specific disaster)
IDK play a sound?
This could be useful in case of make a Disaster response Unit
IDK play a sound?
This could be useful in case of make a Disaster response Unit
Last edited by Mg3094066 on 03 Sep 2018, 03:51, edited 2 times in total.
- Bearbear76
- Former Bearbear65
- Reactions:
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Disaster reaction?
I think that's possible
https://theotown.com/forum/viewtopic.php?f=81&t=5959
Use variables but it's non specific if I'm correct
https://theotown.com/forum/viewtopic.php?f=81&t=5959
Use variables but it's non specific if I'm correct
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Ok.. Lets see if really is possible. ©
Here is the basic structure of the Json file
The Main objective it's program the reaction feature and add a sound... I already have it.
Code: Select all
[{"draw ground":true,"frames":[{"bmp":"TornadoSiren2.png"}],"height":1,"id":"$TornadoSiren00","influence magnament":100,"type":"public","width":1}]
- CommanderABab
- AB
- Reactions:
- Posts: 11121
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Be sure to spell management right if you really want to influence it.
- Oshawotta737
- Inhabitant of a Conurbation
- Reactions:
- Posts: 475
- Joined: 28 Mar 2018, 22:53
- Location: Murica
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Yes. I live in tornado alley so i hear these frequently. I am so happuy these are being made. We shpould make it so you can trigger them by hitting one and trigger them all for fun instead of just for tornadoes. And when that happens all cars except police fire and ambulance should temporaaraly despawn.
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
ok ok ok...
I'll need some help...
I have to add a disaster condition frame 1 and then
Action: play sound:<sound>?
I'll need some help...
I have to add a disaster condition frame 1 and then
Action: play sound:<sound>?
- JustAnyone
- Developer
- Reactions:
- Posts: 3482
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Functional Tornado Siren [WIP]
disaster=1. Yes.
However it will shout at you if any disaster happens.
However it will shout at you if any disaster happens.
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Dats the purpose of the plug-in XDJustAnyone wrote: ↑03 Sep 2018, 06:50disaster=1. Yes.
However it will shout at you if any disaster happens.
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
The disaster Condition isn't available at the moment...
I'll try to write the entire Json code for avoid dealing with problems at the update time and release it as fast as possible
I'll try to write the entire Json code for avoid dealing with problems at the update time and release it as fast as possible
- ElephantEthan
- Inhabitant of a Megacity
- Reactions:
- Posts: 294
- Joined: 26 Aug 2018, 14:07
- Plugins: Showcase Store
-
Platform
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
But only will play the sound with a disaster Condition... The action will be play sound
- ElephantEthan
- Inhabitant of a Megacity
- Reactions:
- Posts: 294
- Joined: 26 Aug 2018, 14:07
- Plugins: Showcase Store
-
Platform
Re: Functional Tornado Siren [WIP]
Then make the condition check for the disaster variable.
@Mg3094066
Code: Select all
"condition":{ // This condition is only true if there's a disaster going on in the city.
"type":"value",
"code":"disaster",
"z":1
}
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Hmmmm...
Code: Select all
[{
"draw ground": true,
"frames": [{
"bmp": "TornadoSiren2.png"
}],
"height": 1,
"id": "$TornadoSiren00",
"influence maganament": 100,
"type": "public",
"width": 1,
"fun": [{
"condition": [{
"type": "value",
"code": "disaster",
"z": 1
}],
"actions": [{
"type": "play",
"Id": "."
}]
}],
{
"id": "$Thunderbolt_1003",
"type": "sound",
"file": "Thunderbolt1003.mp3"
"volume": 5 "
}
}]
- Oshawotta737
- Inhabitant of a Conurbation
- Reactions:
- Posts: 475
- Joined: 28 Mar 2018, 22:53
- Location: Murica
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Iwhen will this be ready?
- Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3223
- Joined: 28 May 2017, 01:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Really... Idk...
There may be spelling mistakes in the code (commas and brackets)
and the update it's still missing
There may be spelling mistakes in the code (commas and brackets)
and the update it's still missing
- Oshawotta737
- Inhabitant of a Conurbation
- Reactions:
- Posts: 475
- Joined: 28 Mar 2018, 22:53
- Location: Murica
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Reactions:
- Posts: 11121
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Reactions:
- Posts: 11121
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Functional Tornado Siren [WIP]
Remember management is spelled m a n a g e m e n t.