Jump to content

mstnothing_else

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by mstnothing_else

  1. Hey everyone, i'm really new at this so please be understanding. I'm trying to write a Script to open a Door with a floorswitch. The idea is  to drop a box and activate the switch. I'm using the prefab boxes and the SlidingDoor.Lua.  I saw this video below but the problem is that the script works only if you put the value name in the Script

    function Script:Collision (entity, position, normal, speed)
        if (entity: GetKeyValue ("name") == "crate_small") then
            self.component: CallOutputs ("Open")
        end
        
    end

    but what i want is to be able to assign or to change the object-door-opener from the Script tab, by creating a Script Entry, I just don't know how cause i'm really new at this. Thanks for your help.

     

×
×
  • Create New...