savior10946
Junior Member
Posts: 8
Threads: 7
Joined: Mar 2011
Reputation:
0
|
opening door
Hey I am trying to make my door called mansion_2 open when i unlock mansion_1.
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "KeyOnDoor", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0.0f, true);
RemoveItem("key_1");
}
what do i need to add to make mansion_2 open once i unlock mansion_1 i dont know prop force or entity moving please help.soz for kinda long script.[/size]
|
|
04-12-2011, 02:00 AM |
|
palistov
Posting Freak
Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation:
57
|
RE: opening door
Use SetSwingDoorClosed("mansion_2", false, true); It should make it swing all the way open. If it doesn't work the way you want just add an impulse to the door with the right coordinates.
|
|
04-12-2011, 03:43 AM |
|