See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: ummu CODING-FIXED  (Read 1604 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 337
  • Country: United States us
  • Karma: 15
26 April 2009, 04:07:00
I want it to see if a name of a crew is aboard if it is then show this mesh.  Does thids look right?

So if ROBOT is a crew name then show that mesh, right?

if (Crew.GetCrewMiscIdByName(Crew.GetLastEnteredCrewName())=="ROBOT")SetMeshVisibilityMode( 6, MESHVIS_ALWAYS );
      else  SetMeshVisibilityMode( 6, MESHVIS_NEVER );

This fixed it:
if (strlen(Crew.GetCrewMiscIdByName("ROBOT")))
     SetMeshVisibilityMode( 6, MESHVIS_ALWAYS );
else
     SetMeshVisibilityMode( 6, MESHVIS_NEVER );




Post Edited ( 04-27-09 11:43 )

« Last Edit: 26 April 2009, 04:07:00 by gattico »