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
Level Editor Help How to get Grunt to open cabinet doors
Bridge Offline
Posting Freak

Posts: 1,971
Threads: 25
Joined: May 2012
Reputation: 128
#12
RE: How to get Grunt to open cabinet doors

(06-22-2012, 06:46 PM)drunkmonk Wrote: Ok so what you want to do for this case is delete the AddTimer("", 1.0, "MonsterPath"); in the void OnStart
and replace it with this
SetEntityPlayerInteractCallback("name of your key in here", "MonsterPath", false);
and then change your void MonsterPath from
void MonsterPath(string &in asTimer)
to
void MonsterPath(string &in asEntity)
leave everything else in this void the same.
Just FYI, it's called a function. Void is the return type (which means the function doesn't return anything).
06-22-2012, 07:32 PM
Find


Messages In This Thread
RE: How to get Grunt to open cabinet doors - by Bridge - 06-22-2012, 07:32 PM



Users browsing this thread: 4 Guest(s)