[HELP] How can I set rotation dynamically?
Re: [HELP] How can I set rotation dynamically?
You guys are CRAZY! This made my day 
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: [HELP] How can I set rotation dynamically?
@Komag: This might count as abusing petri's game engine - but it seems to be standing up to it! :p
This technique actually also has some other uses too though I guess (it might already have been done somewhere). For instance...
Just a handful of lines of code and (if you finish off the list of monster IDs list) you've cloned every single monster with a new version that is immune to fire. You could presumably use this technique to give all of your monsters a specific 'onDie' hook or all of your doors a new onOpen/onClose hook that means they don't work if you have a special condition (broken fingers or something).
This technique actually also has some other uses too though I guess (it might already have been done somewhere). For instance...
SpoilerShow
Code: Select all
monsters = {"crab", "crowern", "goromorg", "green_slime", ...};
for i=1, #monsters do
cloneObject {
name = monsters[i] .. "_immune_to_fire",
baseObject = monsters[i],
onDamage = function(monster, damAmount, damType)
if ( damType == "fire" ) then
return false;
end
return true;
end,
}
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: [HELP] How can I set rotation dynamically?
Now we need alcove overclocking competitions to see who can run the most & still have a working dungeon
(throw in some LightSource objects too for the water cooled rigs) 
Re: [HELP] How can I set rotation dynamically?
Alcoves... *sniffle* They grow up so fast~
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
- Edsploration
- Posts: 104
- Joined: Wed Sep 19, 2012 4:32 pm
Re: [HELP] How can I set rotation dynamically?
Awesome awesome! I'm thrilled to see this much works. I think I can move forward with some really crazy stuff. Thanks for exploring the topic everyone 
Open Project -> Community FrankenDungeon: viewtopic.php?f=14&t=4276