Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Putting a lever...
sasukeroxxx Offline
Junior Member

Posts: 39
Threads: 5
Joined: Sep 2011
Reputation: 0
#1
Exclamation  Putting a lever...

How do I get a lever and place it in such a place to pull it? for example: pick up the item in leveleditor is called "lever_small_lever" and places it in the item: "level_small_mount" anhelp would be greatly appreciated Big Grin

@edit:
I improvised and put it this way and it worked:
lever_2 the lever is released, level_small_mount_1 is the business that puts the lever.level_3 the lever and is paired with the "mount". thus it was that was what i wanted to do?


void OnStart(){AddEntityCollideCallback("lever_2", "loke", "oloco", true, 1);}void oloco(string &in asParent, string &in asChild, int alState){   SetEntityActive("lever_small_mount_1", false);      SetEntityActive("lever_2", false);   SetEntityActive("lever_3", true);}


Hallucination

Constantine - in Construction
(This post was last modified: 11-17-2011, 08:56 PM by sasukeroxxx.)
11-17-2011, 07:51 PM
Find




Users browsing this thread: 1 Guest(s)