Page 1 of 1

human activated regions

Posted: Thu May 22, 2014 6:03 pm
by Lorul1
I have a region that plays an animation but both AI and humans can activate it. I would like to know if there is anything I can add to my script to make only humans activate it, and i would also like to know if it will work in multiplier mode.
Thanks in advance :D

Re: human activated regions

Posted: Thu May 22, 2014 6:53 pm
by LRKfm946
Use IsCharacterHuman:

Code: Select all

RegionTrigger = OnEnterRegion(
      function(region, character)
	
		       if IsCharacterHuman(character) then

                        --Your code here

		        end

	    end, 
	    "region_name")