Exemple #1
0
def RotateMainCharacter(x, y):
    """
	Rotate main character to (x,y)

	Args:
		x ([float]): X coordinate of destination.
		y ([float]): Y coordinate of destination.
	"""
    my_x, my_y, my_z = player.GetMainCharacterPosition()
    chr.SelectInstance(player.GetMainCharacterIndex())
    rot = GetRotation(my_x, my_y, x, y)
    chr.SetRotation(rot)
Exemple #2
0
    def __MakeCharacter(self, chr_id, race):

        chr.CreateInstance(chr_id)
        chr.SelectInstance(chr_id)
        chr.SetVirtualID(chr_id)
        chr.SetRace(race)
        chr.SetArmor(0)
        chr.SetHair(0)

        chr.Refresh()
        chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
        chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)

        chr.SetRotation(0.0)
        chr.Hide()
    def MakeCharacter(self, index, id, name, race, form, hair):
        if 0 == id:
            return

        chr.CreateInstance(index)
        chr.SelectInstance(index)
        chr.SetVirtualID(index)
        chr.SetNameString(name)

        chr.SetRace(race)
        chr.SetArmor(form)
        chr.SetHair(hair)
        chr.Refresh()
        chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
        chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)
        chr.SetRotation(0.0)
Exemple #4
0
	def MakeCharacter(self, race):	
		chr_id = race;
		
		chr.CreateInstance(chr_id)
		chr.SelectInstance(chr_id)
		chr.SetVirtualID(chr_id)
		chr.SetNameString(str(race))
		
		chr.SetRace(race)
		chr.SetArmor(0) 
		chr.SetHair(0)

		chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
		chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)

		chr.SetRotation(-7.0) #Degree value	
		chr.Hide()
Exemple #5
0
	def __MakeCharacter(self, page, slot, race):

		chr_id = self.__GetSlotChrID(page, slot)

		chr.CreateInstance(chr_id)
		chr.SelectInstance(chr_id)
		chr.SetVirtualID(chr_id)
		#
		self.instanceIDs.append(chr_id)

		chr.SetRace(race)
		chr.SetArmor(0)
		chr.SetHair(0)

		chr.Refresh()
		chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
		chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)

		chr.SetRotation(0.0)
		chr.Hide()
    def MakeCharacter(self, slot, name, race, form, hair, acce):
        chr.CreateInstance(slot)
        chr.SelectInstance(slot)
        chr.SetVirtualID(slot)
        chr.SetNameString(name)

        chr.SetRace(race)
        chr.SetArmor(form)
        chr.SetHair(hair)
        #chr.SetAcce(acce)

        chr.SetMotionMode(chr.MOTION_MODE_GENERAL)
        chr.SetLoopMotion(chr.MOTION_INTRO_WAIT)

        ## 수인족만, 스케일 조금 축소.
        #if chr.RaceToJob(race) == JOB_WOLFMAN:
        #	chr.SetScale(0.95,0.95,0.95)

        chr.SetRotation(0.0)
        chr.Hide()