BloodSyndicate Posted July 30, 2007 Share Posted July 30, 2007 Ok.. about references When I make a script an object, how do i activate its block by another script?In other words: what is the ref id of an object-script Also, does anyone know the exact reach of a power attack in feet or units? (Not including the weapons reach itself) Any help would be deeply appreciated. Link to comment Share on other sites More sharing options...
Vagrant0 Posted July 31, 2007 Share Posted July 31, 2007 Ok.. about references When I make a script an object, how do i activate its block by another script?In other words: what is the ref id of an object-script Also, does anyone know the exact reach of a power attack in feet or units? (Not including the weapons reach itself) Any help would be deeply appreciated.Scripts don't have reference numbers you can use, only the object it's attached to does. However, unless the block is an onactivate block, you cannot directly trigger that block to run. Depending on what you're trying to do, it's usually easier to just use a gamemode block and have a condition within that block become true when you want the action to be performed. But really, how you have one script trigger another, or produce an effect is much more dependant on what you're trying to do than anything. I believe the power attack reach is somewhere around 64 units give or take the length of the person's arm. Have t remember, weapon reach is determined by the actual havok of the weapon before weapon reach takes effect. Even changing all weapons to 1.00 reach would still have them contacting at differnt distances. Likewise, a woodelf male would have a shorter reach than an orc male, even with the same weapons. It's one of the few things they actually got right. The reason why everything isn't 1.00 reach is probably due to trying to nerf this effect so that people don't suddenly have to adapt to slightly different ranges for every weapon. Two longswords of different physical length have roughly the same attack range due to this setting. Link to comment Share on other sites More sharing options...
BloodSyndicate Posted July 31, 2007 Author Share Posted July 31, 2007 Wow, thank you so much. It really makes sense. So, that means I have to activate the actor ID if its an actor that its attatched to. does every single actor have a unique ID even if they are the same NPC? For example: placing the same NPC multiple times. Also, I had to make the quest an Object due to it being assigned to an NPC. But I didnt think of using GameMode Blocktype. I want the script to run indefinitely. I did that by constantly making it activate itself. with its initial activate being in the OnHit Blocktype. But I have made a quest script and used fQuestTimeDelay to make it repeat itself in GameMode Blocktype, so I suppose it will work in object scripts too? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.