Jump to content

Recommended Posts

Posted

I managed loading vehicles from file snow and now i created a List of EntitySeats for the different seats. What i need now is spawning the seats WITH the entity, but when i do it in the constructor the entities make really glitchy things.

Posted

I set up a boolean that once the entity is first spawned its true, and after the first tick its then false that way you can ensure all the things are in place before doing the next operation

 

Ex.

boolean fresh = true;

 

onUpdate(){

if(fresh){

//Do your things

fresh =false;

}

 

Edit: Is this entity supposed to also have a refrence to the seat entity because if so then your gonna need to do some funky packet handling

}

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.