Board index Roller Coaster Games NoLimits Coaster 2 error C60: Unknown method: getParentEntityId()

error C60: Unknown method: getParentEntityId()

All discussion relation to NoLimits Coaster 2 should be posted here. Purchase NoLimits Coaster from this page: nolimits-coaster-2-purchase-and-upgrade-links-t32524.html

Post January 25th, 2014, 12:06 pm

Posts: 2113
Points on hand: 2,704.00 Points
Offline
Why do I get this error when I attach my script to my object?

Post January 25th, 2014, 12:25 pm

Posts: 2113
Points on hand: 2,704.00 Points
Offline
Nevermind I figured it out. Anyone else getting this error just change it from sim.getParentEntityId() to getParentEntityId() cuz its a method of the script class not the sim class

Post January 25th, 2014, 12:33 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
Offline
Originally posted by Kyle Sloane

Nevermind I figured it out. Anyone else getting this error just change it from sim.getParentEntityId() to getParentEntityId() cuz its a method of the script class not the sim class


It's a method of the Entity class, not Script. Script extends Entity.

Post January 25th, 2014, 12:37 pm

Posts: 2113
Points on hand: 2,704.00 Points
Offline
^I meant as in its a method of the class Script as opposed to class Sim

Post January 25th, 2014, 1:14 pm

Posts: 151
Points on hand: 374.00 Points
Location: Virginia, USA
Offline
I know, I meant that it is in fact not a method of Script. It's an inherited method from Entity. I know how you are thinking about it, but I don't know what somebody else reading this might be thinking.

It may seem a picky difference, but I don't know who may read this and get the wrong idea. If somebody goes to override the method, it's better to know that it's not a method of Script, and that Script may have already overridden the method. This can prevent errors down the road in case Script did something that might affect your script.

I don't honestly think anybody will try to override that method, but I've stopped underestimating what your average person will try to do anymore. I'm always disappointed.

Sponsors
Did you know? Active community members enjoy an ad-free experience! Learn how ›
  • Rate 80%+ of your downloaded tracks (min 40 downloads)
  • Post at least 10 forum topics or replies in the last 90 days
  • Upload a track in the last 90 days
  • Earn 50,000+ points with a 10+ year account
  • Or become a Premium member

Return to NoLimits Coaster 2

 


  • Related topics
    Replies
    Views
    Last post