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
Script help
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#13
RE: Script help

Not on a pc at the moment but an easier way would be to use the property on the key in the editor that automatically creates a on interact callback. I'm assuming you're trying to make something happen when the player picks up a key. If you wana do it the way you're doing it now it's SetEntityPlayerInteractCallback("livingkey", "monsterspawn", true); Can't just be making up callbacks now :-)

Also, your monsterspawn function has no parameters, it should be void monsterspawn(string &in asEntity)

Closure ModDB page:

[Image: 16LO8Sx]
(This post was last modified: 12-15-2013, 05:55 AM by ExpectedIdentifier.)
12-15-2013, 05:50 AM
Find


Messages In This Thread
Script help - by Steelen - 12-12-2013, 10:15 PM
RE: Script help - by daortir - 12-12-2013, 10:21 PM
RE: Script help - by Steelen - 12-12-2013, 11:44 PM
RE: Script help - by Daemian - 12-12-2013, 10:41 PM
RE: Script help - by daortir - 12-12-2013, 11:26 PM
RE: Script help - by Daemian - 12-12-2013, 11:56 PM
RE: Script help - by daortir - 12-13-2013, 12:02 AM
RE: Script help - by Steelen - 12-13-2013, 12:06 AM
RE: Script help - by daortir - 12-13-2013, 12:12 AM
RE: Script help - by Steelen - 12-13-2013, 08:48 AM
RE: Script help - by daortir - 12-13-2013, 01:11 PM
RE: Script help - by Romulator - 12-13-2013, 03:09 PM
RE: Script help - by ExpectedIdentifier - 12-15-2013, 05:50 AM
RE: Script help - by Neelke - 02-19-2014, 09:57 AM
RE: Script help - by davide32 - 02-23-2014, 10:33 PM
RE: Script help - by davide32 - 03-20-2014, 03:01 PM
RE: Script help - by PutraenusAlivius - 03-20-2014, 03:48 PM



Users browsing this thread: 1 Guest(s)