Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » How do I Make a !cin <Text_File> command for renegade ??
Re: How do I Make a !cin <Text_File> command for renegade ?? [message #400240 is a reply to message #399894] Thu, 27 August 2009 23:59 Go to previous messageGo to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma:
General (1 Star)
Actually, he wants to play a cinematic (from the sounds of it..)

function OnChat(pID, Type, Message, Target)
	local toks = Explode( Message, " " )
	if ( toks[1] == "!cin" ) then
		local obj = Create_Object( "invisible_object", Get_Position(Get_GameObj(pID)) )
		if obj ~= nil then
			Attach_Script_Once( obj, "Test_Cinematic", toks[2] )
		end
	end
end


Requires Explode function to work.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mod working on LAN Server but not on FDS?
Next Topic: SupW no color change
Goto Forum:
  


Current Time: Fri Dec 13 23:06:16 MST 2024

Total time taken to generate the page: 0.00837 seconds