Frictional Games Forum (read-only)

Full Version: When I enter an area while I have an item script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Big Grin I'm sure someone knows how and help would be appreciated. I think it has something to do with variables idk
thanks!
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