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
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
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
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
^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
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.


Return to NoLimits Coaster 2

 


  • Related topics
    Replies
    Views
    Last post
cron