Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When I enter an area while I have an item script
Author Message
SLAMnesia Offline
Member

Posts: 94
Joined: May 2011
Reputation: 0
Post: #1
When I enter an area while I have an item script
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!
07-15-2011 07:29 AM
Find all posts by this user Quote this message in a reply
palistov Offline
Posting Freak

Posts: 1,175
Joined: Mar 2011
Reputation: 56
Post: #2
RE: When I enter an area while I have an item script
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

07-15-2011 07:59 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)