Scripting Rotations -1 reply

  • 1
  • 2

Please wait...

Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#1 11 years ago

Hi there, I use BehaveEd is there anyway I can make a script that rotates a brush by say 60degrees (I want a door that swings outwards.) if so, how is this done (I noticed you can rotate an entity (such as an NPC or PC).




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#2 11 years ago

There's a command called rotate. Start experimenting with it.




Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#3 11 years ago

Yes I am aware of the command, but I don't see any way of linking it to the specified brush.




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#4 11 years ago

You give an entity in Radiant a script_targetname. Then Affect that script_targetname in the script and use the rotate command inside the affect.




Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#5 11 years ago

Ok, I set it up, with the script_targetname etc. Now it didn't rotate, but no errors were reported. I just want to check I've linked them properly. I set the AFFECT field to "maindoor1" aswell as the script_targetname on the brush (I set the brush to a func_wall so it counts as an entity) I left the second field as FLUSH coz I didn't really know what it meant =S am I doing anything wrong?




Kaito

Addicted to GF

50 XP

16th January 2007

0 Uploads

265 Posts

0 Threads

#6 11 years ago

Map-Craft

But, instead of 90, change it to 60




Shadow10k

Meepity beepity BONK!

50 XP

27th March 2007

0 Uploads

76 Posts

0 Threads

#7 11 years ago

Ahh thanks so much for the link! If I knew it was rotating doors I would've just googled that >.< sorry to post a seemingly pointless question, thanks a million Kaito :) DRINKS ALL ROUND! :beer:




Kaito

Addicted to GF

50 XP

16th January 2007

0 Uploads

265 Posts

0 Threads

#8 11 years ago

lol anytime. Im just learning scripting, so i have like everything i find bookmarked :P




lassev

Degenerate scripter

50 XP

21st June 2004

0 Uploads

847 Posts

0 Threads

#9 11 years ago

Kaito;3853417Map-Craft

But, instead of 90, change it to 60

That tutorial was written by some terrible n00b who would hardly know enough scripting to save his life if it depended on it.




UU_BobaFett

JKG Lead coder

50 XP

18th July 2006

0 Uploads

202 Posts

0 Threads

#10 11 years ago
I left the second field as FLUSH coz I didn't really know what it meant =S

the second parameter of the Affect command is very simple

its either FLUSH or INSERT when you use FLUSH, any scripts the entity may currently be running will be cancelled and your script will run instead, when you use INSERT, your script will be added to the script its currently running (if any)




  • 1
  • 2