Jump to content
Sign in to follow this  
Jones

( TurnToCha(t[i]) ) - what does it stand for?

Recommended Posts

function TurnToCha ( role ) 
	local x_role = role 
	if ChaIsBoat ( role ) == 1 then 
		x_role = GetMainCha ( role ) 
	end 
	return x_role 
end 

I think it returns character's descriptor if he is in boat.


Share this post


Link to post
Share on other sites
38 minutes ago, V3ct0r said:

function TurnToCha ( role ) 
	local x_role = role 
	if ChaIsBoat ( role ) == 1 then 
		x_role = GetMainCha ( role ) 
	end 
	return x_role 
end 

I think it returns character's descriptor if he is in boat.

there are some functions that use

 

local cha_name = GetChaDefaultName ( TurnToCha (t

 

instead of

 

local cha_name = GetChaDefaultName ( role )

 

So my wonder is what it is for :o

 

it seems to achieve the same thing (pull the character's name)

but it feels that TurnToCha is more specific?

 

@V3ct0r

Share this post


Link to post
Share on other sites

Using GetChaDefaultName when in a boat gives the boats name, not the chars name. (I used to use this to mess with servers that had an older version of tele delays to tele other players)

Share this post


Link to post
Share on other sites
54 minutes ago, 7n6 said:

Using GetChaDefaultName when in a boat gives the boats name, not the chars name. (I used to use this to mess with servers that had an older version of tele delays to tele other players)

so GetChaDefaultName ( role ) on boat = Boat Name

and

GetChaDefaultName ( TurnToCha ( t [ i ] ) ) on boat = Character's Name?

 

@7n6

Edited by Jones

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

Sign in to follow this  

×
×
  • Create New...