When I enter an area while I have an item script - 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: When I enter an area while I have an item script (/thread-9155.html) |
When I enter an area while I have an item script - SLAMnesia - 07-15-2011 Hello friends, I would like some instructions on how to make a script function occur when I enter an area WHILE i have a certain object I'm sure someone knows how and help would be appreciated. I think it has something to do with variables idk thanks! RE: When I enter an area while I have an item script - palistov - 07-15-2011 If it's an inventory item use this if statement: if(HasItem(string& name)) //Do your cool stuff //----------- If it's a grab object like a rock or something, do this if statement: if(GetPropIsInteractedWith(string& name)) //Do your cool stuff |