Dionysus

Labels

  • 3D Work
  • Alice Posts
  • Alistair Posts
  • Cat Posts
  • Coding
  • Concept Art
  • JJ Posts
  • Meetings
  • Research
  • Sound
  • Toop Posts

Friday, 19 April 2013

Respawn Plant Script

#pragma strict

function OnTriggerEnter (other : Collider)
{


 renderer.enabled = false;
yield WaitForSeconds (8);
renderer.enabled = true;

}

Here is the script so that when you encounter the box collider the plant will disappear for 8 seconds and the re-appear.
Posted by Alice at 15:09
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Alice Posts, Alistair Posts, Coding

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Contributors

  • Alice
  • Alistair Gardiner
  • CheshireCat
  • PlasmaticJj
  • Toop

Pages

  • Home
  • Priorities

Blog Archive

  • ▼  2013 (101)
    • ►  12 May - 19 May (8)
    • ►  5 May - 12 May (8)
    • ►  28 April - 5 May (5)
    • ►  21 April - 28 April (8)
    • ▼  14 April - 21 April (4)
      • Respawn Plant Script
      • Possible Following A.I. code?
      • Visor - Maya
      • 15th April 2013 Meeting
    • ►  24 March - 31 March (3)
    • ►  17 March - 24 March (6)
    • ►  10 March - 17 March (9)
    • ►  3 March - 10 March (5)
    • ►  24 February - 3 March (5)
    • ►  17 February - 24 February (11)
    • ►  10 February - 17 February (10)
    • ►  3 February - 10 February (17)
    • ►  27 January - 3 February (1)
    • ►  20 January - 27 January (1)
Simple theme. Powered by Blogger.