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
Entity unlock
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#3
RE: Entity unlock

You can do it like they did in the main game by putting a script and when the player walks into it, it pops up playing a sound and creating a particle effect. but if you want it to be a trap so when a player goes to it and it's locked then coming back later it pops up, just put a script in-game past the iron maiden activateing the script to scare.

Also instead of locking and unlocking it you can just place two ironmaidens, one that locked and active and one thats open and unactive. so when the player walks into the script, the locked ironmaiden disappear and the unlocked ironmaiden gets active and addpropimpulse can work.

EDIT: Not sure if this works on the ironmaiden tho

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "UnlockDoor", true, 1);
}

void UnlockDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("iron_maiden_1", false, true);
}

(This post was last modified: 05-17-2011, 12:47 PM by Rownbear.)
05-17-2011, 12:42 PM
Find


Messages In This Thread
Entity unlock - by Greven - 05-17-2011, 12:23 PM
RE: Entity unlock - by Tanshaydar - 05-17-2011, 12:38 PM
RE: Entity unlock - by Rownbear - 05-17-2011, 12:42 PM
RE: Entity unlock - by Greven - 05-17-2011, 12:49 PM
RE: Entity unlock - by Tanshaydar - 05-17-2011, 12:58 PM
RE: Entity unlock - by Greven - 05-17-2011, 01:23 PM
RE: Entity unlock - by dragonlordsd - 05-17-2011, 05:10 PM
RE: Entity unlock - by Tanshaydar - 05-17-2011, 05:44 PM
RE: Entity unlock - by dragonlordsd - 05-17-2011, 07:55 PM
RE: Entity unlock - by Tanshaydar - 05-17-2011, 08:14 PM
RE: Entity unlock - by dragonlordsd - 05-17-2011, 10:08 PM
RE: Entity unlock - by palistov - 05-17-2011, 10:13 PM
RE: Entity unlock - by dragonlordsd - 05-17-2011, 10:58 PM
RE: Entity unlock - by Rownbear - 05-18-2011, 12:49 AM
RE: Entity unlock - by dragonlordsd - 05-19-2011, 01:48 AM
RE: Entity unlock - by MrBigzy - 05-19-2011, 01:52 AM
RE: Entity unlock - by dragonlordsd - 05-19-2011, 03:15 AM
RE: Entity unlock - by Acies - 05-19-2011, 03:27 AM
RE: Entity unlock - by dragonlordsd - 05-19-2011, 09:22 PM



Users browsing this thread: 1 Guest(s)