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
Error when loading second map
Ubermensch Offline
Junior Member

Posts: 3
Threads: 1
Joined: Oct 2016
Reputation: 0
#3
RE: Error when loading second map

(10-16-2016, 10:24 PM)Mudbill Wrote: The issue is that your parameters for your "lookatcorpse" function are incorrect. You're not supposed to edit anything in the parameters after you copy them to your script because they need to match what is required by the function call.

SetEntityPlayerLookAtCallback requires these parameters:

void MyFunc(string &in asEntity, int alState)

So that's what you must use. Replace the 1 with "int alState".

Also, in your OnStart, you didn't specify which entity the player must look at to call this event, so it will never happen.

Hm... Thanks! I'll let you know how it went when I modify the script.
(This post was last modified: 10-16-2016, 10:53 PM by Ubermensch.)
10-16-2016, 10:39 PM
Find


Messages In This Thread
Error when loading second map - by Ubermensch - 10-16-2016, 09:47 PM
RE: Error when loading second map - by Mudbill - 10-16-2016, 10:24 PM
RE: Error when loading second map - by Ubermensch - 10-16-2016, 10:39 PM
RE: Error when loading second map - by Mudbill - 10-17-2016, 12:24 AM
RE: Error when loading second map - by Ubermensch - 10-17-2016, 01:31 PM
RE: Error when loading second map - by Romulator - 10-17-2016, 01:52 PM



Users browsing this thread: 1 Guest(s)