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
christopher231 Offline
Junior Member

Posts: 26
Threads: 4
Joined: Jul 2011
Reputation: 0
#4
RE: need a little with a script

(12-06-2011, 02:25 PM)flamez3 Wrote:
(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
i don't know if you can, because you can't go up to it and move it.



(12-06-2011, 05:37 PM)Your Computer Wrote: Do you mind showing the rest of the script? I want to make sure where and how the connection state change callback is being set.
so do you mean the whole .hps file?

(This post was last modified: 12-08-2011, 03:06 AM by christopher231.)
12-08-2011, 03:02 AM
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
RE: need a little with a script - by christopher231 - 12-08-2011, 03:02 AM



Users browsing this thread: 1 Guest(s)