Difference between revisions of "Create story script"

From XStoryPlayer Wiki
Jump to: navigation, search
(Created page with "In this tutorial we will add some scripting: Give feedback to player, make the doors open when a specific event occurs, let female alien walk by. <ol> <li>We don't want the d...")
(No difference)

Revision as of 14:15, 12 January 2015

In this tutorial we will add some scripting: Give feedback to player, make the doors open when a specific event occurs, let female alien walk by.

  1. We don't want the doors to open automatically. We need to make the doors objects that can be driven by the script.
    Open the /init/story/scenes.dat</li> file and add:
    door_objecti DOOR1
    {
      q        =  0;
      q_min    = -150;
      q_max    =  150;
      q_spring =  1.33;
     
      open = false;
     
      obj_name = "cell1"; // 
    }

    </ol>