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
Attaching ladder pieces together
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#7
RE: Attaching ladder pieces together

For the lever thing,
PHP Code: (Select All)
void OnStart()
{
SetEntityConnectionStateChangeCallback("LEVERNAME""DoorUnlockLever");
}

void DoorUnlockLever(string &in asEntityint alState)
{
if(
alState == -1)
{
SetSwingDoorLocked("DOORNAME"falsetrue);
}
if(
alState == 0)
{
SetSwingDoorLocked("DOORNAME"truetrue);
}

I think it's like that.

For the ladder thing, (if you still need help, if not, I'm just letting this to be here.)
PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""ITEMTOUSENAME""ENTITYFORUSENAME""LadderAttach"true);
}

void LadderAttach(string &in asItemstring &in asEntity)
{
SetEntityActive("LADDERAREANAME"true);
StartPlayerLookAt("ENTITYTOLOOKNAME"66"");
PlaySoundAtEntity("""05_attach_ladder.snt"0.1ffalse); 
AddTimer(""3.0f"StopPlrLookAt"); //Change the 3.0f to how long you want the player look at time to end. (In Seconds)
}

void StopPlrLookAt(string &in asTimer)
{
StopPlayerLookAt();


"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 04-12-2013, 04:41 AM by PutraenusAlivius.)
04-12-2013, 04:31 AM
Find


Messages In This Thread
Attaching ladder pieces together - by serbusfish - 04-11-2013, 03:30 PM
RE: Attaching ladder pieces together - by NaxEla - 04-11-2013, 06:43 PM
RE: Attaching ladder pieces together - by NaxEla - 04-11-2013, 11:11 PM
RE: Attaching ladder pieces together - by PutraenusAlivius - 04-12-2013, 04:31 AM



Users browsing this thread: 1 Guest(s)