Jump to content

Photo

IsInKillCam never returns true

jip

  • Please log in to reply
14 replies to this topic

#11
Mktavish

Mktavish

    Pleb

  • Premium Member
  • 3,061 posts

That says you don't understand the difference between ELSE and ELSEIF ,  then further the break down structure behind IF

 

Maybe you are trying to force it ?   The engine don't like to be forced ... but that's assuming you would know how to force it.   For the most part it's just hum dee dumm compute sumthin.



#12
UnvalidUserName

UnvalidUserName

    Fan

  • Members
  • PipPipPip
  • 252 posts

Only thing I need to know now is if someone else has this problem. I don't need a scripting tutorial or a background check. If you want to help you can quickly try any script and see if IsInKillCam returns true on run time. That's all I need



#13
Mktavish

Mktavish

    Pleb

  • Premium Member
  • 3,061 posts

No that wouldn't help you.

 

You are helping yourself incase you didn't notice.

 

My responses get you a little peeved and you dig deeper to give next response.

 

Sorry to break it to ya.

 

Are you sure you don't know the difference between  "ELSE"  and  "ELSEIF"  ?

 

Okies which I don't know either ... either way the  question starts with "IF"

 

Then the question progresses to "ELSE"

 

Why we need "ELSEIF"  I hope a code junky will tell us.



#14
dubiousintent

dubiousintent

    Resident poster

  • Premium Member
  • 8,878 posts

An "ElseIf" is a conditional test that only gets parsed when all preceding "If" or "ElseIf" statements have proven "false".  You can get the same effect by splitting it up into an "Else" on one line and the "If" on another (as you have discovered), but then you have to nest them correctly, pairing up each "Else" with an "EndIf".  "ElseIf" remains at the same nesting level as the original "If" statement, and only needs the single "EndIf" matching the original "If".  It's much cleaner to read and code.

 

An "Else" is an unconditional statement that gets processed when ALL preceding "If" or "ElseIf" statements have proven "false".  It marks the last section of an "If" block before the "EndIf".  It is implied as "do nothing" even when absent.

 

Think of it this way: an "Else" is your "fail safe 'all false' condition": nothing else in the block was true.  An "ElseIf" is just another way to have an "If" test, but only when others failed.  Without the "Else" part, the "If" will always be tested (except you will probably have a "missing EndIf" or "nesting problem" error by then).

 

 

As for the "IsInKillCam" function: reading the GECKWiki description indicates it is a JIP NVSE function that will only return true while a "bink" cutscene is playing.  Do scripts wait on "bink" videos?  The OP should probably address that question directly to Jazzisparis.

 

-Dubious-



#15
UnvalidUserName

UnvalidUserName

    Fan

  • Members
  • PipPipPip
  • 252 posts

Thanks. I decided to ignore the IsInKillCam and work around it. At least that clarifies why it wasn't working.







Also tagged with one or more of these keywords: jip

IPB skins by Skinbox
Page loaded in: 0.974 seconds