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
When I enter an area while I have an item script
SLAMnesia Offline
Member

Posts: 99
Threads: 39
Joined: May 2011
Reputation: 0
#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
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#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




Users browsing this thread: 1 Guest(s)