sc2c.org

Go Back   Sc2C.org > Developer's Corner > Scripting
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-09-2010, 03:49 PM   #1
Ranakastrasz
Junior Member
 
Join Date: Aug 2010
Posts: 18
Default Turret face point

I have a unit based off of the auto turret. It has an effect occur when you click, which works fine. However. I dont know how to make the turret face the clicked point. using the set unit facing causes the base to face that way. Is there any way, trigger wise, to set the facing of a turret?
Ranakastrasz is offline   Reply With Quote
Old 08-12-2010, 11:30 AM   #2
Strategy Master
Ye Old'e AI guy
 
Strategy Master's Avatar
 
Join Date: Jul 2010
Location: Azeroth
Posts: 11
Default

I havn't had a chance to look at this so there may be a way to rotate this another way.

But you could force it by getting to turret to attack maybe a unit that cannot be seen. That will force the turret to face to fire in a particular direction. Whether it will stay watching the direction once the invisible enemy unit is removed is another question.
Strategy Master is offline   Reply With Quote
Old 08-17-2010, 02:35 AM   #3
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Aug 2010
Location: U.S.
Posts: 11
Send a message via AIM to Zerzax
Default

Try making the unit's actor face the angle.
Zerzax is offline   Reply With Quote
Old 08-17-2010, 02:04 PM   #4
Ranakastrasz
Junior Member
 
Join Date: Aug 2010
Posts: 18
Default

Yes, How would one do that? I haven't a clue.
Ranakastrasz is offline   Reply With Quote
Old 08-17-2010, 09:28 PM   #5
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Aug 2010
Location: U.S.
Posts: 11
Send a message via AIM to Zerzax
Default

"Make actor face angle", it's under the actor functions. Getting the actor of a unit is another available function.
Zerzax is offline   Reply With Quote
Old 08-19-2010, 02:55 PM   #6
Ranakastrasz
Junior Member
 
Join Date: Aug 2010
Posts: 18
Default

Ok, What i meant was, How do I refer to the turret actor?
Ranakastrasz is offline   Reply With Quote
Old 08-19-2010, 07:53 PM   #7
Adovid
Data Editor ZOMG
 
Adovid's Avatar
 
Join Date: Aug 2010
Posts: 41
Default

This tutorial says Turret Body.
Adovid is offline   Reply With Quote
Old 08-19-2010, 08:12 PM   #8
Zerzax
Zerzy
 
Zerzax's Avatar
 
Join Date: Aug 2010
Location: U.S.
Posts: 11
Send a message via AIM to Zerzax
Default

Yeah sorry I didn't know what you meant :P.
Zerzax is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:44 PM.


Powered by vBulletin
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.