Results 1 to 3 of 3

Thread: Team look the model as...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Short: yes, possible



    A bit longer:

    Code:
    function gamelogic
    	while game is running
    		game waittill player joined team
    		updateVisibility
    	endloop
    endfunction
    
    function updateVisibility
    	model1 hide
    	model2 hide
    
    	foreach player in players
    		if player team == team1
    			model1 showTo( player )
    		else
    			model2 showTo( player )
    		endif
    	endloop
    endfunction
    showTo() shows the model to the inputplayer

  2. The Following User Says Thank You to serthy For This Useful Post:

    Loveboy (6th October 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •