Live Help
Membership
You are a guest!

Register Today!

Log In
Reset Password
Game Network
Community Forum

MMO GAME LIST
World of Warcraft
Age of Conan
Anarchy Online
Archlord
Cabal Online
City of Heroes
City of Villains
Dark Age of Camelot
Darkfall Online
Diablo 2
Dungeons and Dragons
Dofus
Eve Online
Everquest 2
Final Fantasy XI
Guild Wars
Hero Online
Knight Online
Lineage 2
Lord of the Rings Online
Maple Story
Ragnarok Online
Runescape 2
Second Life
SilkRoad Online
Star Wars Galaxies
Tibia
Warhammer Online

FPS GAME LIST
Call of Duty
Combat Arms
Counter Strike
Halo

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Auto shield, Hide like a coward jk
post Oct 16 2009, 08:26 PM
Post #1

aliz123



Advanced
Group Icon

Group: Elite Members
Posts: 89
Joined: 20-February 09
Member No.: 843,883






umm.gif //Fixed by Damen Hax` <----- his fault if it dont work jk

default
{
state_entry()
{
llListen(0,"",llGetOwner(),"");
}

listen(integer channel,string name,key id,string message)
{
if(message=="shield on")
{
llOwnerSay("Shields Activated.");
llSensorRepeat("","",ACTIVE,5,TWO_PI,0.1);//5 is the range in meters to detect
//for fast incoming projectiles.
}

if(message=="shield off")
{
llOwnerSay("Shields De-Activated.");
llSensorRemove();
}
}



sensor(integer num_detected)
{
if(llVecMag(llDetectedVel(0)) > 7.0)//if something is going faster than 7.0
// rez the shield.
{
rotation rot = llGetRot();
rotation drot = llDetectedRot(0);
rotation between = llGetRot() * llRotBetween(<0,0,0> * llGetRot(), llDetectedPos(0) - llGetPos());
llRezObject("Your shield here",llGetPos() + <0,0,0> * between,ZERO_VECTOR,between,0);

}
}
}
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 


> Board Footer
Time is now: 15th March 2010 - 01:40 PM