FDF Mod Forum

Finnish Defense Forces Mod Forum
It is currently Fri Apr 26, 2019 05:43

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Jan 04, 2007 21:10 
Offline
FDF Mod Developer

Joined: Thu Jan 04, 2007 19:53
Posts: 47
Translation from finnihs section: Written by Jarppi
Code:
 class UserActions
      {
         class Jumplight1
         {
            displayName="Light Red Jump Light";
            position="pos driver";
            radius=5.500000;
            condition="driver this == player && this animationPhase {jumplights} > 0.25";
            statement="this animate [{jumplights}, 0]";
         };
         class Jumplight2
         {
            displayName="Light Yellow Jump Light";
            position="pos driver";
            radius=5.500000;
            condition="driver this == player && (this animationPhase {jumplights} < 0.25 || this animationPhase {jumplights} > 0.75)";
            statement="this animate [{jumplights}, 0.5]";
         };
         class Jumplight3
         {
            displayName="Light Green Jump Light";
            position="pos driver";
            radius=5.500000;
            condition="driver this == player && this animationPhase {jumplights} < 0.75";
            statement="this animate [{jumplights}, 1]";
         


Red light "this animate [{jumplights},0]", yellow gets number 0.5 and green 1

This script should work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.081s | 13 Queries | GZIP : Off ]