OnHitByLaser...

About advanced scenes, and the Thyme scripting language used in Algodoo.

OnHitByLaser...

Postby kevg » Sat Dec 05, 2009 3:33 pm

How could I make an OnLaserHit script with OnHitByLaser like an (e)=>{OnCollide = OnCollide; ...}? Because i was try but i failed...

Thanks :thumbup:
kevg
 
Posts: 3
Joined: Sat Dec 05, 2009 3:26 pm

Re: OnHitByLaser...

Postby Laraso » Sat Dec 05, 2009 7:01 pm

I don't completely understand your question, but it sounds like your asking how to make an OnHitByLaser script... Isn't that already in the script menu? Just make a laser and go to its script menu, it SHOULD be there.
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: OnHitByLaser...

Postby kevg » Sat Dec 05, 2009 7:31 pm

No, I want when my laser beam hit a geometry, the geometry has an "OnHitByLaser" script which it didn't have before being hit by the laser...
kevg
 
Posts: 3
Joined: Sat Dec 05, 2009 3:26 pm

Re: OnHitByLaser...

Postby Laraso » Sat Dec 05, 2009 7:37 pm

I don't know if that is possible or not... I can't help you there, sorry. :|
Phundamentalist... When possible!
Image
User avatar
Laraso
 
Posts: 241
Joined: Tue Sep 01, 2009 12:54 am
Location: What are you, a stalker?

Re: OnHitByLaser...

Postby standardtoaster » Sat Dec 05, 2009 8:18 pm

Code: Select all
e.geom.onHitByLaser=(e)=>{code you want to add}

There.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: OnHitByLaser...

Postby kevg » Sat Dec 05, 2009 9:10 pm

Thank you standardtoaster ;)
kevg
 
Posts: 3
Joined: Sat Dec 05, 2009 3:26 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests

cron