I can't generate a crewmate...

Started by 510lliw, November 25, 2016, 02:47:59 AM

Previous topic - Next topic

510lliw

I know the crewmate generating script, but I don't really know how to use it(it doesn't ever do anything).
Help?

QwertymanO07

The crewmate command, createcrewman(), is internal, so you must first use another script to load it.  Typically, it'll look like this:

crew
iftrinkets(0,crew_do)

crew_do
createcrewman()



Though obviously you can change the createcrewman() arguments and the script names, so long as you change the name in both scripts.

510lliw

Quote from: QwertymanO07 on November 25, 2016, 08:24:07 AM
The crewmate command, createcrewman(), is internal, so you must first use another script to load it.  Typically, it'll look like this:

crew
iftrinkets(0,crew_do)

crew_do
createcrewman()


It still didn't work...  :o

Though obviously you can change the createcrewman() arguments and the script names, so long as you change the name in both scripts.

QwertymanO07


510lliw

CreateCrew:
iftrinkets(0,ccdo)
ccdo:
createcrewman(10,10,green,sad,left)

QwertymanO07

First off, is there exactly 1 empty line after cretecrewman()?  If there's more, that's probably where your issue comes from.  Another thing of note is that both sad and left aren't valid arguments, it's 1 and faceleft, respectively; though I'd recommend using faceplayer instead, unless it is absolutely important that he's facing that direction.

510lliw

Yeah, it was the empty space after the script line. And also, thanks for telling me the valid arguments!
Thanks so much!  :)