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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Error when loading second map

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.

10-16-2016, 10:24 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)