Functionality using fun

Any information about the fun attribute is given here.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 7910
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Functionality using fun

#21

Post by CommanderABab » Tue Aug 28, 2018 5:03

If you always want to do just the action, there is no need to put the condition part in.
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 530
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Functionality using fun

#22

Post by Imran M » Sat Feb 09, 2019 22:46

How would I make a shuttle crash? So, on 21.03.16 (in game), a shuttle goes up, but on 04.05.17 it can do one of two things: crash (1% chance) or land safely (99%). How could I use fun to do this. I know they're both possible, and the casino and meteorite disaster are examples of this, but how could I use them both?
https://m.youtube.com/watch?v=AqpYHdv3S00 gives 404 error.

User avatar
Lobby
Developer
Reactions:
Posts: 3376
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Functionality using fun

#23

Post by Lobby » Sun Feb 10, 2019 1:08

You could have two animations added to your space pad: One for the successful launch and one that contains the crash.
Via fun you would pause stop both animations on frame 0 (in which they contain an empty frame).

Prior to starting the rocket you would randomly decide which animation to run using the rnd condition (see here https://theotown.com/forum/viewtopic.php?f=81&t=4532 )
...Have a nice stay

Post Reply Previous topicNext topic

Return to “Fun attribute”