Planet Samuro
Messages
Guest_14862
Planet Samuro
 
Messages
3D Chat
Mini-Chat

Message Panels : General : Un petit script
<<<First<<prev.>next.>>>Last>RepReply^Discussion ^vDiscussion vDelDelete the discussion
SamuroSamuro02/04Sent: 02/04/2021 20:54:491 / 5Message 1 from 5

// mon premier script

event start ()
{
   say ("bonjour, je démarre !");
}


            


TarZanTarZan02/04Sent: 02/04/2021 20:59:592 / 5Message 2 from 5
this message was deleted by the author

SamuroSamuro02/04Sent: 02/04/2021 21:14:023 / 5Message 3 from 5


event touch ()
{
   start_timer (nr => 0, seconds => 3.0);   // démarre timer 0 avec 3 secondes
}


// cet événement est appelé à l'expiration d'une minuterie

event timer (int nr)
{
   say ("timer number " + itos(nr) + " a expiré");
}

            


SamuroSamuro02/04Sent: 02/04/2021 21:25:334 / 5Message 4 from 5
this message was deleted by the author

SamuroSamuro02/04Sent: 02/04/2021 21:26:025 / 5Message 5 from 5
 event start ()
 {
    particule_parameters p;

    clear p;

    p.mesh_nr      = 1;

    p.nb_particles = 10;
    p.pause        = 1000;

    // sprayer
    p.direction_angle = {-180.0, +180.0};
    p.height_angle    = {0.0, 0.0};
    p.radius          = 0.5;

    p.life[0].durations   = {15_000, 15_000};    // 15 secondes
    p.life[0].begin_speed = {1.0, 1.0};          // 1 m/s
    p.life[0].end_speed   = {1.0, 1.0};

    p.life[0].begin_color = {0xFFFFFFFF, 0xFFFFFFFF};  // blanc, 0% transparent
    p.life[0].end_color   = {0xFFFFFFFF, 0xFFFFFFFF};

    p.life[0].begin_size  = {{0.2, 0.2}, {0.2, 0.2}};   // taille 0.2 x 0.2 m
    p.life[0].end_size    = {{0.2, 0.2}, {0.2, 0.2}};

    p.life[0].orientation = 0;     // toujours orienté verticalement

    p.ambiant = true;
    p.sunlight = true;

//    p.texture = "brilliant";

    generate_particles (p);
 }
<<<First<<prev.>next.>>>Last>RepReply^Discussion ^vDiscussion vDelDelete the discussion