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).
There's a command called rotate. Start experimenting with it.
Yes I am aware of the command, but I don't see any way of linking it to the specified brush.
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.
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?
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:
lol anytime. Im just learning scripting, so i have like everything i find bookmarked :P
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.
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