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
need a little with a script
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: need a little with a script

(12-06-2011, 02:16 PM)christopher231 Wrote: Hey, in my story i have this little puzzle at the start and once you complete it you find a lever, and i want this lever to open a "safety_large_vert" but i can't seem to make it work.



SetEntityConnectionStateChangeCallback("levertodoor1", "Func_shelf");
}

void Func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("safety_large_vert_1",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}
}

This is what i have, i have used this script to open a "castlebase_secret_door"
and it worked.
so if anyone can help me out, i'll i give you a High Five Big Grin
Are you sure you can move that object? I'm asking because I don't know either :3


12-06-2011, 02:25 PM
Find


Messages In This Thread
need a little with a script - by christopher231 - 12-06-2011, 02:16 PM
RE: need a little with a script - by flamez3 - 12-06-2011, 02:25 PM



Users browsing this thread: 1 Guest(s)