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 some help with my FAST MONSTER script
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#12
RE: Need some help with my FAST MONSTER script

Yes.

In the interact-tab in the doors properties you write: Interact4Doors

script:

void Interact4Doors(string &in asEntity)
{
if(GetLocalVarInt("4Doors") == 4)
{
SetSwingDoorLocked("Door_"+RandInt(1,4), false, true);
}

else
{
if(GetLocalVarInt(asEntity) == 1)
{
return;
}
AddLocalVarInt("4Doors", 1);
AddLocalVarInt(asEntity, 1);
}
}

This means the 4 doors should be named: Door_1, Door_2, Door_3, Door_4

Trying is the first step to success.
12-22-2012, 10:55 PM
Find


Messages In This Thread
RE: Need some help with my FAST MONSTER script - by FlawlessHappiness - 12-22-2012, 10:55 PM



Users browsing this thread: 1 Guest(s)