Duke4.net Forums: How can't this work ? D: - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How can't this work ? D:  "coding question, about 'checkactivatormotion'"

User is offline   Seb Luca 

  • 239

#1

Hi :)

It seems that "checkactivatormotion" does not work. Here is a code for an event activating a lotag defined in Zvel when lotags in Xvel and Yvel are activated before.

Did I something wrong?? :o

    gamevar getoexvel 0 2                gamevar getoeyvel 0 2                gamevar getoezvel 0 2
    getactor[THISACTOR].xvel getoexvel   getactor[THISACTOR].yvel getoeyvel   getactor[THISACTOR].zvel getoezvel 

    gamevar checkoestatus 0 2

    checkactivatormotion getoexvel
    ifvare RETURN 1 setvar checkoestatus 1 
    else            setvar checkoestatus 0

    checkactivatormotion getoeyvel
    ifvare RETURN 1 { ifvare checkoestatus 1 setvar checkoestatus 3 }

    ifvare checkoestatus 3
    {
      operateactivators getoezvel 0
      killit
    }


This post has been edited by Seb Luca: 24 August 2018 - 03:32 AM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options