Teleporting items & Vaporizing items - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Teleporting items & Vaporizing items (/thread-18872.html) Pages:
1
2
|
RE: Teleporting items & Vaporizing items - Damascus - 10-22-2012 If you want the item to appear exactly back where it was in the same position, use this command: ResetProp(string& asName); It will return an item to its original state and location as it was when the map was loaded. RE: Teleporting items & Vaporizing items - ZodiaC - 10-22-2012 (10-22-2012, 12:58 AM)Damascus Wrote: If you want the item to appear exactly back where it was in the same position, use this command:Thanks it works perfectly!But it works only one time...How can i make it work every time the item leaves the region? RE: Teleporting items & Vaporizing items - The chaser - 10-22-2012 AddEntityCollideCallback("nameofitem", "ScriptReturn", "REturn", false, -1) void REturn(string &in asParent, string &in asChild, int alState); { ResetProp(string &in asName); } The false is that it will always repeat. The -1 is when it leaves the area. Combine beecake's script with this one and it should work. RE: Teleporting items & Vaporizing items - ZodiaC - 10-22-2012 (10-22-2012, 01:31 PM)The chaser Wrote: AddEntityCollideCallback("nameofitem", "ScriptReturn", "REturn", false, -1)it was so simple! RE: Teleporting items & Vaporizing items - FlawlessHappiness - 10-25-2012 (10-21-2012, 09:46 PM)belikov Wrote:What it does is:(10-21-2012, 06:49 PM)beecake Wrote: you can always use the ""+somethingwell i got the "For" command There are 3 timers. You call "Timer_" and then it picks a random number from 1 to 3, which is added to the name Timer_. This results in a random timer being called It's just another way to use ""+Something RE: Teleporting items & Vaporizing items - ZodiaC - 10-25-2012 (10-25-2012, 09:37 PM)beecake Wrote: What it does is:I didn't noticed the rand command..Pretty cool!!I like this kind of commands! Thanks for sharing them! |